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 +1 -3
- package/dist/client.js +34 -26
- package/dist/core/OpenAPI.js +1 -1
- package/dist/services/HelpersService.d.ts +5 -11
- package/dist/services/HelpersService.js +4 -4
- package/package.json +1 -1
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
|
|
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.
|
|
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
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
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
|
|
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;
|
package/dist/core/OpenAPI.js
CHANGED
|
@@ -89,25 +89,19 @@ export declare class HelpersService {
|
|
|
89
89
|
};
|
|
90
90
|
}>;
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
93
|
-
* @returns
|
|
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
|
|
96
|
+
static s3ResourceInfo({ workspace, requestBody, }: {
|
|
97
97
|
workspace: string;
|
|
98
98
|
/**
|
|
99
|
-
* S3 resource path to use
|
|
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
|
-
*
|
|
73
|
-
* @returns
|
|
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
|
|
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/
|
|
79
|
+
url: '/w/{workspace}/job_helpers/v2/s3_resource_info',
|
|
80
80
|
path: {
|
|
81
81
|
'workspace': workspace,
|
|
82
82
|
},
|