windmill-client 1.295.1 → 1.295.2

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/client.js CHANGED
@@ -211,7 +211,7 @@ function runScriptAsync(path_1, hash_1, args_1) {
211
211
  params["parent_job"] = parentJobId;
212
212
  }
213
213
  let rootJobId = getEnv("WM_ROOT_FLOW_JOB_ID");
214
- if (rootJobId != undefined) {
214
+ if (rootJobId != undefined && rootJobId != "") {
215
215
  params["root_job"] = rootJobId;
216
216
  }
217
217
  let endpoint;
@@ -233,9 +233,7 @@ function runScriptAsync(path_1, hash_1, args_1) {
233
233
  Authorization: `Bearer ${index_2.OpenAPI.TOKEN}`,
234
234
  },
235
235
  body: JSON.stringify(args),
236
- })
237
- .then((res) => res.json())
238
- .then((data) => data.id);
236
+ }).then((res) => res.text());
239
237
  });
240
238
  }
241
239
  exports.runScriptAsync = runScriptAsync;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OpenAPI = void 0;
4
4
  exports.OpenAPI = {
5
5
  BASE: '/api',
6
- VERSION: '1.295.1',
6
+ VERSION: '1.295.2',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
@@ -71,18 +71,7 @@ export declare class SettingService {
71
71
  /**
72
72
  * test object storage config
73
73
  */
74
- requestBody: {
75
- type?: string;
76
- bucket?: string;
77
- region?: string;
78
- accessKey?: string;
79
- accountName?: string;
80
- tenantId?: string;
81
- clientId?: string;
82
- access_key?: string;
83
- secret_key?: string;
84
- endpoint?: string;
85
- };
74
+ requestBody: Record<string, any>;
86
75
  }): CancelablePromise<string>;
87
76
  /**
88
77
  * send stats
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "windmill-client",
3
3
  "description": "Windmill SDK client for browsers and Node.js",
4
- "version": "1.295.1",
4
+ "version": "1.295.2",
5
5
  "author": "Ruben Fiszel",
6
6
  "license": "Apache 2.0",
7
7
  "devDependencies": {