windmill-client 1.227.1 → 1.228.1

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.d.ts CHANGED
@@ -66,12 +66,10 @@ export declare function getVariable(path: string): Promise<string>;
66
66
  */
67
67
  export declare function setVariable(path: string, value: string, isSecretIfNotExist?: boolean, descriptionIfNotExist?: string): Promise<void>;
68
68
  export declare function databaseUrlFromResource(path: string): Promise<string>;
69
- export declare function polarsConnectionSettings(s3_resource_path: string | undefined): Promise<any>;
70
- export declare function duckdbConnectionSettings(s3_resource_path: string | undefined): Promise<any>;
71
69
  /**
72
70
  * Get URLs needed for resuming a flow after this step
73
71
  * @param approver approver name
74
- * @returns approval page UI URL, resume and cancel API URLs for resumeing the flow
72
+ * @returns approval page UI URL, resume and cancel API URLs for resuming the flow
75
73
  */
76
74
  export declare function getResumeUrls(approver?: string): Promise<{
77
75
  approvalPage: string;
package/dist/client.js CHANGED
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.uint8ArrayToBase64 = exports.base64ToUint8Array = exports.getResumeEndpoints = exports.getResumeUrls = exports.duckdbConnectionSettings = exports.polarsConnectionSettings = exports.databaseUrlFromResource = exports.setVariable = exports.getVariable = exports.getState = exports.getInternalState = exports.setState = exports.setInternalState = exports.setResource = exports.getStatePath = exports.resolveDefaultResource = exports.getResource = exports.getWorkspace = exports.setClient = exports.SHARED_FOLDER = exports.WorkspaceService = exports.UserService = exports.SettingsService = exports.ScheduleService = exports.ScriptService = exports.VariableService = exports.ResourceService = exports.JobService = exports.GroupService = exports.GranularAclService = exports.FlowService = exports.AuditService = exports.AdminService = void 0;
12
+ exports.uint8ArrayToBase64 = exports.base64ToUint8Array = exports.getResumeEndpoints = exports.getResumeUrls = exports.databaseUrlFromResource = exports.setVariable = exports.getVariable = exports.getState = exports.getInternalState = exports.setState = exports.setInternalState = exports.setResource = exports.getStatePath = exports.resolveDefaultResource = exports.getResource = exports.getWorkspace = exports.setClient = exports.SHARED_FOLDER = exports.WorkspaceService = exports.UserService = exports.SettingsService = exports.ScheduleService = exports.ScriptService = exports.VariableService = exports.ResourceService = exports.JobService = exports.GroupService = exports.GranularAclService = exports.FlowService = exports.AuditService = exports.AdminService = void 0;
13
13
  const index_1 = require("./index");
14
14
  const index_2 = require("./index");
15
15
  var index_3 = require("./index");
@@ -257,34 +257,42 @@ function databaseUrlFromResource(path) {
257
257
  });
258
258
  }
259
259
  exports.databaseUrlFromResource = databaseUrlFromResource;
260
- function polarsConnectionSettings(s3_resource_path) {
261
- return __awaiter(this, void 0, void 0, function* () {
262
- const workspace = getWorkspace();
263
- return yield index_1.HelpersService.polarsConnectionSettingsV2({
264
- workspace: workspace,
265
- requestBody: {
266
- s3_resource_path: s3_resource_path
267
- }
268
- });
269
- });
270
- }
271
- exports.polarsConnectionSettings = polarsConnectionSettings;
272
- function duckdbConnectionSettings(s3_resource_path) {
273
- return __awaiter(this, void 0, void 0, function* () {
274
- const workspace = getWorkspace();
275
- return yield index_1.HelpersService.duckdbConnectionSettingsV2({
276
- workspace: workspace,
277
- requestBody: {
278
- s3_resource_path: s3_resource_path
279
- }
280
- });
281
- });
282
- }
283
- exports.duckdbConnectionSettings = duckdbConnectionSettings;
260
+ // TODO(gb): need to investigate more how Polars and DuckDB work in TS
261
+ // export async function polarsConnectionSettings(s3_resource_path: string | undefined): Promise<any> {
262
+ // const workspace = getWorkspace();
263
+ // return await HelpersService.polarsConnectionSettingsV2({
264
+ // workspace: workspace,
265
+ // requestBody: {
266
+ // s3_resource_path: s3_resource_path
267
+ // }
268
+ // });
269
+ // }
270
+ // export async function duckdbConnectionSettings(s3_resource_path: string | undefined): Promise<any> {
271
+ // const workspace = getWorkspace();
272
+ // return await HelpersService.duckdbConnectionSettingsV2({
273
+ // workspace: workspace,
274
+ // requestBody: {
275
+ // s3_resource_path: s3_resource_path
276
+ // }
277
+ // });
278
+ // }
279
+ // export async function denoS3LightClientSettings(s3_resource_path: string | undefined): Promise<DenoS3LightClientSettings> {
280
+ // const workspace = getWorkspace();
281
+ // const s3Resource = await HelpersService.s3ResourceInfo({
282
+ // workspace: workspace,
283
+ // requestBody: {
284
+ // s3_resource_path: s3_resource_path
285
+ // }
286
+ // });
287
+ // let settings: DenoS3LightClientSettings = {
288
+ // ...s3Resource,
289
+ // }
290
+ // return settings;
291
+ // }
284
292
  /**
285
293
  * Get URLs needed for resuming a flow after this step
286
294
  * @param approver approver name
287
- * @returns approval page UI URL, resume and cancel API URLs for resumeing the flow
295
+ * @returns approval page UI URL, resume and cancel API URLs for resuming the flow
288
296
  */
289
297
  function getResumeUrls(approver) {
290
298
  var _a;
@@ -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.227.1',
6
+ VERSION: '1.228.1',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
@@ -89,25 +89,19 @@ export declare class HelpersService {
89
89
  };
90
90
  }>;
91
91
  /**
92
- * Converts an S3 resource to the set of arguments necessary to connect to an S3 bucket using boto3 in Python
93
- * @returns any Connection settings
92
+ * Returns the s3 resource associated to the provided path, or the workspace default S3 resource
93
+ * @returns S3Resource Connection settings
94
94
  * @throws ApiError
95
95
  */
96
- static boto3ConnectionSettingsV2({ workspace, requestBody, }: {
96
+ static s3ResourceInfo({ workspace, requestBody, }: {
97
97
  workspace: string;
98
98
  /**
99
- * S3 resource path to use to generate the connection settings. If empty, the S3 resource defined in the workspace settings will be used
99
+ * S3 resource path to use. If empty, the S3 resource defined in the workspace settings will be used
100
100
  */
101
101
  requestBody: {
102
102
  s3_resource_path?: string;
103
103
  };
104
- }): CancelablePromise<{
105
- endpoint_url: string;
106
- region_name: string;
107
- use_ssl: boolean;
108
- aws_access_key_id?: string;
109
- aws_secret_access_key?: string;
110
- }>;
104
+ }): CancelablePromise<S3Resource>;
111
105
  /**
112
106
  * Test connection to the workspace datasets storage
113
107
  * @returns any Connection settings
@@ -69,14 +69,14 @@ class HelpersService {
69
69
  });
70
70
  }
71
71
  /**
72
- * Converts an S3 resource to the set of arguments necessary to connect to an S3 bucket using boto3 in Python
73
- * @returns any Connection settings
72
+ * Returns the s3 resource associated to the provided path, or the workspace default S3 resource
73
+ * @returns S3Resource Connection settings
74
74
  * @throws ApiError
75
75
  */
76
- static boto3ConnectionSettingsV2({ workspace, requestBody, }) {
76
+ static s3ResourceInfo({ workspace, requestBody, }) {
77
77
  return (0, request_1.request)(OpenAPI_1.OpenAPI, {
78
78
  method: 'POST',
79
- url: '/w/{workspace}/job_helpers/v2/boto3_connection_settings',
79
+ url: '/w/{workspace}/job_helpers/v2/s3_resource_info',
80
80
  path: {
81
81
  'workspace': workspace,
82
82
  },
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.227.1",
4
+ "version": "1.228.1",
5
5
  "author": "Ruben Fiszel",
6
6
  "license": "Apache 2.0",
7
7
  "devDependencies": {