Type Definitions
-
Acl
-
Type:
- object
-
AclGroup
-
Type:
- object
- Source:
Properties:
Name Type Description editorsArray.<string> Array of user ids of editors
portfolioAdminsArray.<string> Array of user ids of portfolio administrators
viewersArray.<string> Array of user ids of viewers
-
CategoryConfig
-
Type:
- object
- Source:
Properties:
Name Type Description AppliesTostring IsMultiSelectboolean CategoryNamestring e.g. Region
CategoryEntriesarray.<string> e.g US, Asia, Europe
-
CategoryConfigPromise
-
Resolves with a CategoryConfigPromiseCallbackSuccess, fails with a CategoryConfigPromiseCallbackSuccess
Type:
- Promise
- Source:
-
CategoryConfigPromiseCallbackError(message)
-
This callback is called when the categoriesConfigFor response fails
Parameters:
Name Type Description messagestring base64 encoded error message
- Source:
-
CategoryConfigPromiseCallbackSuccess(categoryConfigs)
-
This callback is called when the categoriesConfigFor response succeeds
Parameters:
Name Type Description categoryConfigsArray.<CategoryConfig> array of CategoryConfig objectsj
- Source:
-
CategoryConfigSavePromise
-
Resolves with a CategoryConfigSavePromiseCallbackSuccess, fails with a CategoryConfigPromiseCallbackSuccess
Type:
- Promise
- Source:
-
CategoryConfigSavePromiseCallbackSuccess(statusMessage)
-
This callback is called when the saveCategoryConfig response succeeds
Parameters:
Name Type Description statusMessagestring status of saveCategoryConfig ( new or existing )
- Source:
-
CompareUncData
-
Type:
- object
- Source:
Properties:
Name Type Description highlightedNodeArray.<Array.<CompareUncOutputData>> This is a nested array. First, it has as many elements as there are children. Each element is an array of outputs, one for each Tornado ValueMetricKey.
siblingNodeArray.<Array.<CompareUncOutputData>> This is a nested array. First, it has as many elements as there are children. Each element is an array of outputs, one for each Tornado ValueMetricKey. An empty array is returned if no sibling has been selected.
nodeNamestring Node name of highlighted node
shadowNodeNamestring Node name of sibling node. This is null if no sibling has been selected.
-
CompareUncOutputData
-
Type:
- object
- Source:
Properties:
Name Type Description Displaystring Full display describing the output
Unitsstring Units of the output
Meannumber The mean value of the combined uncertainty bar of this output in the Tornado
NodeNamestring Name of the child
SummaryArray.<number> The low (0), medium (1) and high (2) values of this output based on the combined uncertainty bar in the Tornado.
-
CompareValueChildData
-
Type:
- object
- Source:
Properties:
Name Type Description childLeafNamesArray.<string> A list of names of all children immediately below the selected node
compareValueDataArray.<object> A list of values of all children immediately below the selected node. The values are picked from the template (portfolio or platformPortfolio) based on the Keys parameter (an array of output keys) for the COMPARE_VALUE command.
nodeNamestring Name of the selected node
-
CompareValueData
-
Type:
- object
- Source:
Properties:
Name Type Description commandJSONobject This has attributes that setup the chart display
highlightedNodeCompareValueChildData This is the appropriate value data in the node that has been selected
siblingNodeCompareValueChildData This is the appropriate value data in the sibling node that has been selected. It will be null if no sibling has been selected.
-
DeleteUserPromise
-
Resolves with a DeleteUserPromiseCallbackSuccess,
fails with a DeleteUserPromiseCallbackErrorType:
- Promise
- Source:
-
DeleteUserPromiseCallbackError(message)
-
This callback is called when the DeleteUserPromise
response failsParameters:
Name Type Description messagestring plaintext message
- Source:
-
DeleteUserPromiseCallbackSuccess(message)
-
This callback is called when the DeleteUserPromise
response succeedsParameters:
Name Type Description messagestring plaintext message
- Source:
-
Input
-
Type:
- object
- Source:
Properties:
Name Type Description Keystring The key of this input
Typestring The type of this input (SCALAR|DISTRIBUTION|TABLE)
Unitsstring The units of this input
Displaystring The display prompt of this input
Descriptionstring The description of this input
Constraintstring The constraint placed on this input (double|integer|year|date|text)
Valstring The value of this input
Inheritedboolean Is this an inherited input (shared variable)?
InputTypestring Is this data local to the node or overridden? (LOCAL|OVERRIDE)
isLeafnumber If this node is a leaf, this is set to 1 otherwise 0
CellLinkstring The link to the Excel cell
-
InputKeyValPair
-
Type:
- object
- Source:
Properties:
Name Type Description Keystring the key of the input, eg startYear or discountRate
Valstring the value of the input eg 0.89
-
ListUserPromise
-
Resolves with a ListUserPromiseCallbackSuccess,
fails with a ListUserPromiseCallbackErrorType:
- Promise
- Source:
-
ListUserPromiseCallbackError(message)
-
This callback is called when the ListUserPromise
response failsParameters:
Name Type Description messagestring plaintext message
- Source:
-
ListUserPromiseCallbackSuccess(userlist)
-
This callback is called when the ListUserPromise
response succeedsParameters:
Name Type Description userlistArray.<object> List of user objects.
- Source:
-
MenuItems
-
Type:
- object
- Source:
Properties:
Name Type Description nodeAttributestring This has identifiers like "r" or "rw" to specify if this node is editable.
nodeIDstring The node for which the inputs have been fetched
inputsArray.<Input> The inputs that have been found
selectedInputKeystring what is this?
targetDSstring The dataset ID. Why is it called "target"?
templateIDstring The ID of the template associated with this node
userstring The name of the user who has made the request
-
MenuObject
-
Type:
- object
- Source:
Properties:
Name Type Description Commandstring The command to be invoked by this action
displayTextstring The display for this menu item
menuIDstring The unique key for this menu item
nodeIDstring The node ID for from this menu item has been fetched
isOutputboolean Is this command an output command? TABLE_INPUT and INPUT_SCREEN are input commands, and all else are output commands.
levelnumber What is this?
parametersobject These specify what needs to go into the command. They differ based on the command.
Astring Legacy Javascript code injection. Ignore when writing your applications.
-
ModifyUserPromise
-
Resolves with a ModifyUserPromiseCallbackSuccess,
fails with a ModifyUserPromiseCallbackErrorType:
- Promise
- Source:
-
ModifyUserPromiseCallbackError(message)
-
This callback is called when the ModifyUserPromise
response failsParameters:
Name Type Description messagestring plaintext message
- Source:
-
ModifyUserPromiseCallbackSuccess(message)
-
This callback is called when the ModifyUserPromise
response succeedsParameters:
Name Type Description messagestring plaintext message
- Source:
-
NewUserPromise
-
Resolves with a NewUserPromiseCallbackSuccess,
fails with a NewUserPromiseCallbackErrorType:
- Promise
- Source:
-
NewUserPromiseCallbackError(message)
-
This callback is called when the NewUserPromise
response failsParameters:
Name Type Description messagestring plaintext message
- Source:
-
NewUserPromiseCallbackSuccess(message)
-
This callback is called when the NewUserPromise
response succeedsParameters:
Name Type Description messagestring plaintext message
- Source:
-
Node
-
Type:
- object
- Source:
Properties:
Name Type Argument Description namestring Name of this node
_idstring ID of this node
_revstring Revision number of this node
datastring A pointer to the data node of the portfolio
treeIDstring The name of the tree to which this node belongs
childrenArray.<string> An array of child node IDs under this node
commandsArray.<string> An array of templates that apply to this node. Portfolio nodes tend not to have commands, so this array is likely 0 for such nodes. If there is a template, then only the first item in this array would be populated. This has been kept an array just in case the design evolves to support multiple templates for a node.
isPlatformboolean Is the current node a platform node? This is always false for portfolio nodes.
aclAcl <optional>
The access control list information for this portfolio. This attribute is only present if the node is a root (portfolio) node.
-
PromiseActionCallbackError(err)
-
This callback is called when the result fails to load.
Parameters:
Name Type Description errError The error that occurred while loading inputs.
- Source:
-
PromiseActionCallbackSuccess(ret)
-
This callback is called when the result is loaded.
Parameters:
Name Type Description retCompareValueData | CompareUncData An object that differs based on the command that was executed
- Source:
-
PromiseActionMenu
-
Resolves with a PromiseActionMenuCallbackSuccess, fails with a PromiseActionMenuCallbackError
Type:
- Promise
- Source:
-
PromiseActionMenuCallbackError(err)
-
This callback is called when the result fails to load.
Parameters:
Name Type Description errError The error that occurred while loading inputs.
- Source:
-
PromiseActionMenuCallbackSuccess(menu)
-
This callback is called when the result is loaded.
Parameters:
Name Type Description menuObject An object that contains the menu items
Properties
Name Type Description menuItemsObject The menu items for the node
Properties
Name Type Description ActionsArray.<MenuObject> The menu items under the "Actions" section
ManagementArray.<MenuObject> The menu items under the "Management" section
- Source:
-
PromiseActionResults
-
Resolves with a PromiseActionCallbackSuccess, fails with a PromiseActionCallbackError
Type:
- Promise
- Source:
-
PromiseAuthenticate
-
Resolves with a PromiseAuthenticateCallbackSuccess, fails with a PromiseAuthenticateCallbackError
Type:
- Promise
- Source:
-
PromiseAuthenticateCallbackError(err)
-
This callback is called when the result fails to load.
Parameters:
Name Type Description errError The error that occurred while loading the result.
- Source:
-
PromiseAuthenticateCallbackSuccess(ret)
-
This callback is called when the result is loaded.
Parameters:
Name Type Description retUserInfo The result is loaded.
- Source:
-
PromiseInputs
-
Resolves with a PromiseInputsCallbackSuccess, fails with a PromiseInputsCallbackError
Type:
- Promise
- Source:
-
PromiseInputsCallbackError(err)
-
This callback is called when the result fails to load.
Parameters:
Name Type Description errError The error that occurred while loading inputs.
- Source:
-
PromiseInputsCallbackSuccess(ret)
-
This callback is called when the result is loaded.
Parameters:
Name Type Description retMenuItems A collection of inputs matching the keys at the node
- Source:
-
PromiseNodeCallbackError(err)
-
This callback is called when the result fails to load.
Parameters:
Name Type Description errError The error that occurred while reading node.
- Source:
-
PromiseNodeCallbackSuccess(node)
-
This callback is called when the node is loaded.
Parameters:
Name Type Description nodeNode The node object
- Source:
-
PromiseNodeResults
-
Resolves with a PromiseNodeCallbackSuccess, fails with a PromiseNodeCallbackError
Type:
- Promise
- Source:
-
PromisePasteStatus
-
Resolves with a PromisePasteStatusCallbackSuccess, fails with a PromisePasteStatusCallbackError
Type:
- Promise
- Source:
-
PromisePasteStatusCallbackError(status, statusText, message)
-
This callback is called when the Paste Node fails
Parameters:
Name Type Description statusNumber http status code, e.g. 500
statusTextstring http status text, e.g. 'INTERNAL SERVER ERROR'
messagestring e.g. incorrect _id 'ERROR PasteNode Exception ('_id')'
- Source:
-
PromisePasteStatusCallbackSuccess(status, message)
-
This callback is called when the Paste Node succeeds
Parameters:
Name Type Description statusNumber 0=success non-zero=failure
messagestring e.g. 'pasted data'
- Source:
-
PromisePortfolios
-
Resolves with a PromisePortfoliosCallbackSuccess, fails with a PromisePortfoliosCallbackError
Type:
- Promise
- Source:
-
PromisePortfoliosCallbackError(err)
-
This callback is called when the result fails to load.
Parameters:
Name Type Description errError The error that occurred while loading portfolios.
- Source:
-
PromisePortfoliosCallbackSuccess(ret)
-
This callback is called when the result is loaded.
Parameters:
Name Type Description retArray.<Node> A collection of root (or portfolio) nodes that the user is allowed to access.
- Source:
-
PromiseTemplates
-
Resolves with a PromiseTemplatesCallbackTemplateSuccess, fails with a PromiseTemplatesCallbackTemplateError
Type:
- Promise
- Source:
-
PromiseTemplatesCallbackTemplateError(err)
-
This callback is called when the result fails to load.
Parameters:
Name Type Description errError The error that occurred while loading the result.
- Source:
-
PromiseTemplatesCallbackTemplateSuccess(ret)
-
This callback is called when the result is loaded.
Parameters:
Name Type Description retArray.<Template> The result is loaded.
- Source:
-
PromiseTree
-
Resolves with a PromiseTreeCallbackSuccess, fails with a PromiseTreeCallbackError
Type:
- Promise
- Source:
-
PromiseTreeCallbackError(message)
-
This callback is called when the treeFor response fails
Parameters:
Name Type Description messagestring base64 encoded error message
- Source:
-
PromiseTreeCallbackSuccess(nodes)
-
This callback is called when the treeFor response succeeds
Parameters:
Name Type Description nodesArray.<Node> tree structure of Nodes
- Source:
-
SaveTagsPromise
-
Resolves with a SaveTagsPromisePromiseCallbackSuccess, fails with a SaveTagsPromisePromiseCallbackSuccess
Type:
- Promise
- Source:
-
SaveTagsPromisePromiseCallbackSuccess(statusMessage)
-
This callback is called when the saveTags response succeeds
Parameters:
Name Type Description statusMessagestring status of saveTags
- Source:
-
SaveTagsPromisePromiseCallbackSuccess(statusMessage)
-
This callback is called when the saveTags response fails
Parameters:
Name Type Description statusMessagestring error message
- Source:
-
SaveUserProfilePromise
-
Resolves with a SaveUserProfilePromiseCallbackSuccess,
fails with a SaveUserProfilePromiseCallbackErrorType:
- Promise
- Source:
-
SaveUserProfilePromiseCallbackError(message)
-
This callback is called when the SaveUserProfilePromise
response failsParameters:
Name Type Description messagestring plaintext message
- Source:
-
SaveUserProfilePromiseCallbackSuccess(message)
-
This callback is called when the SaveUserProfilePromise
response succeedsParameters:
Name Type Description messagestring plaintext message
- Source:
-
ShortUrl
-
Type:
- object
- Source:
Properties:
Name Type Description _idstring short url code e.g. JwijDXE
_revstring internal document revision ( ignore )
urlstring long url
byPassLoginboolean urlLinkNamestring e.g. Report 2016 PMF submission
csumstring checksum of the long url used for duplicate prevention ( ignore )
CategoryEntriesarray.<string> e.g US, Asia, Europe
-
ShortUrlPromise
-
Resolves with a ShortUrlPromiseeCallbackSuccess,
fails with a ShortUrlPromiseCallbackErrorType:
- Promise
- Source:
-
ShortUrlPromiseCallbackError(message)
-
This callback is called when the ShortUrlPromise response fails
Parameters:
Name Type Description messagestring base64 encoded error message
- Source:
-
ShortUrlPromiseeCallbackSuccess(ShortUrl)
-
This callback is called when the ShortUrlPromise response succeeds
Parameters:
Name Type Description ShortUrlArray.<ShortUrl> a ShortUrl object
- Source:
-
TagSet
-
Type:
- Array.<String>
- Source:
Example
//First element in the array is the node ID //Second element in the array is a comma delimited string of 1 or more CategoryName:CategoryItemName, all is required ["b8652f5d935cf2e22e8e5d01de065d5d","all, Region:Africa, Funded:No, CropType:legumes"]
-
Template
-
Type:
- object
- Source:
Properties:
Name Type Argument Description namestring Name of this template
hasPlatformstring Does this template have a platform capability?
infoobject <optional>
Information about this template
Properties
Name Type Argument Description Creatorstring <optional>
Name of the creator of this template
CreatorLinkstring <optional>
Link to the template creator's website
Descriptionstring <optional>
Description of this template
Emailstring <optional>
Email id of template creator
-
UserInfo
-
Type:
- object
- Source:
Properties:
Name Type Description uidstring User ID generated from server
-
UserProfileByIdPromise
-
Resolves with a UserProfileByIdPromiseCallbackSuccess,
fails with a UserProfileByIdPromiseCallbackErrorType:
- Promise
- Source:
-
UserProfileByIdPromiseCallbackError(message)
-
This callback is called when the UserProfileByIdPromise
response failsParameters:
Name Type Description messagestring plaintext message
- Source:
-
UserProfileByIdPromiseCallbackSuccess(userInfo)
-
This callback is called when the UserProfileByIdPromise
response succeedsParameters:
Name Type Description userInfoobject A user object with all property
except password- Source: