import type { IActivityHandler } from "@vertigis/workflow"; /** An interface that defines the inputs of the activity. */ interface AppendObjectsInputs { /** * @displayName Input 1 * @description The first input to the activity. * @required */ input1: object; /** * @displayName Input 2 * @description The second input to the activity. */ input2?: object; } /** An interface that defines the outputs of the activity. */ interface AppendObjectsOutputs { /** * @description The result of the activity. */ result: object; } /** * @displayName Append Objects * @category Geocortex * @description Appends two Objects together */ export default class AppendObjectsActivity implements IActivityHandler { /** Perform the execution logic of the activity. */ execute(inputs: AppendObjectsInputs): AppendObjectsOutputs { const result = { ...inputs.input1, ...inputs.input2 }; return { result: result, }; } }