windmill-client 1.295.0 → 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.0',
6
+ VERSION: '1.295.2',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
@@ -63,21 +63,15 @@ export declare class SettingService {
63
63
  };
64
64
  }): CancelablePromise<string>;
65
65
  /**
66
- * test s3 config
66
+ * test object storage config
67
67
  * @returns string status
68
68
  * @throws ApiError
69
69
  */
70
- static testS3Config({ requestBody, }: {
70
+ static testObjectStorageConfig({ requestBody, }: {
71
71
  /**
72
- * test s3 config
72
+ * test object storage config
73
73
  */
74
- requestBody: {
75
- bucket?: string;
76
- region?: string;
77
- access_key?: string;
78
- secret_key?: string;
79
- endpoint?: string;
80
- };
74
+ requestBody: Record<string, any>;
81
75
  }): CancelablePromise<string>;
82
76
  /**
83
77
  * send stats
@@ -72,14 +72,14 @@ class SettingService {
72
72
  });
73
73
  }
74
74
  /**
75
- * test s3 config
75
+ * test object storage config
76
76
  * @returns string status
77
77
  * @throws ApiError
78
78
  */
79
- static testS3Config({ requestBody, }) {
79
+ static testObjectStorageConfig({ requestBody, }) {
80
80
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
81
81
  method: 'POST',
82
- url: '/settings/test_s3_config',
82
+ url: '/settings/test_object_storage_config',
83
83
  body: requestBody,
84
84
  mediaType: 'application/json',
85
85
  });
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.0",
4
+ "version": "1.295.2",
5
5
  "author": "Ruben Fiszel",
6
6
  "license": "Apache 2.0",
7
7
  "devDependencies": {