Methods
(async, inner) findIdAndDesc(capabilityName, capabilityList)
A Function that finds the corresponding capability description and id for given capability name
Parameters:
Name | Type | Description |
---|---|---|
capabilityName |
string | |
capabilityList |
list |
Returns:
expanded list of the capability list with an identifier
(inner) getPotentialActions(expandedList) → {array}
A Function that removes the URI of function from potential action array in order to identify the potential action
Parameters:
Name | Type | Description |
---|---|---|
expandedList |
list |
Returns:
with potentialActions
- Type
- array
(inner) removeFunctionUri(potentialActionsArray) → {array}
A Function that removed the URI of function from potential action array in order to identify the potential action
Parameters:
Name | Type | Description |
---|---|---|
potentialActionsArray |
array |
Returns:
clean potentialActionArray
- Type
- array
(inner) validatePotentialActions(expandedList, capabilityList)
A Function that validates the potential action format of the capability list throws an error in case there is a capability item without a potential action
Parameters:
Name | Type | Description |
---|---|---|
expandedList |
list | |
capabilityList |
list |