This pull request primarily focuses on improving the handling of outputs in the workflow serialization and deserialization process within the libs/designer package. The changes involve restructuring the output format, adding functionality to flatten and unify output objects, and modifying import statements to include necessary functions.
The parseOutputMock function has been changed to return a unified output object instead of an array. A new function, unifyOutputs, has been added to convert a dot-separated key-value object into a nested object.
The isObject function has been imported from @microsoft/logic-apps-shared.
The Deserialize function now uses the flattenObject function to flatten the nested output object into a dot-separated key-value object before parsing it into a value segment. The flattenObject function has been added to perform this operation.
This pull request primarily focuses on improving the handling of outputs in the workflow serialization and deserialization process within the
libs/designer
package. The changes involve restructuring the output format, adding functionality to flatten and unify output objects, and modifying import statements to include necessary functions.The
parseOutputMock
function has been changed to return a unified output object instead of an array. A new function,unifyOutputs
, has been added to convert a dot-separated key-value object into a nested object.The
isObject
function has been imported from@microsoft/logic-apps-shared
.The
Deserialize
function now uses theflattenObject
function to flatten the nested output object into a dot-separated key-value object before parsing it into a value segment. TheflattenObject
function has been added to perform this operation.