@juhuu/sdk-ts 1.2.268 → 1.2.269

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3751,8 +3751,14 @@ var FlowsService = class extends Service {
3751
3751
  }
3752
3752
  execInput[key] = value;
3753
3753
  }
3754
- const { output } = await this.executeLocally(finalFlowId, execInput);
3755
- return { output };
3754
+ const response = await this.execute({
3755
+ flowId: finalFlowId,
3756
+ input: execInput
3757
+ });
3758
+ if (!response.ok) {
3759
+ throw new Error(`Failed to execute flow: ${response.data?.message || "Unknown error"}`);
3760
+ }
3761
+ return { output: response.data.output };
3756
3762
  },
3757
3763
  "end.custom": async (inputs) => {
3758
3764
  return { output: { ...inputs } };
package/dist/index.mjs CHANGED
@@ -3707,8 +3707,14 @@ var FlowsService = class extends Service {
3707
3707
  }
3708
3708
  execInput[key] = value;
3709
3709
  }
3710
- const { output } = await this.executeLocally(finalFlowId, execInput);
3711
- return { output };
3710
+ const response = await this.execute({
3711
+ flowId: finalFlowId,
3712
+ input: execInput
3713
+ });
3714
+ if (!response.ok) {
3715
+ throw new Error(`Failed to execute flow: ${response.data?.message || "Unknown error"}`);
3716
+ }
3717
+ return { output: response.data.output };
3712
3718
  },
3713
3719
  "end.custom": async (inputs) => {
3714
3720
  return { output: { ...inputs } };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.268",
3
+ "version": "1.2.269",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",