windmill-client 1.250.0 → 1.251.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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { DenoS3LightClientSettings } from "./s3Types";
|
|
2
2
|
export { AdminService, AuditService, FlowService, GranularAclService, GroupService, JobService, ResourceService, VariableService, ScriptService, ScheduleService, SettingsService, UserService, WorkspaceService, } from "./index";
|
|
3
3
|
export type Sql = string;
|
|
4
4
|
export type Email = string;
|
package/dist/client.js
CHANGED
|
@@ -291,6 +291,23 @@ function denoS3LightClientSettings(s3_resource_path) {
|
|
|
291
291
|
});
|
|
292
292
|
}
|
|
293
293
|
exports.denoS3LightClientSettings = denoS3LightClientSettings;
|
|
294
|
+
// export async function loadS3File(
|
|
295
|
+
// s3object: S3Object,
|
|
296
|
+
// s3ResourcePath: string | undefined
|
|
297
|
+
// ): Promise<Response> {
|
|
298
|
+
// const settings = await denoS3LightClientSettings(s3ResourcePath);
|
|
299
|
+
// const s3 = new S3Client(settings);
|
|
300
|
+
// return await s3.getObject(s3object.s3);
|
|
301
|
+
// }
|
|
302
|
+
// export async function writeS3File(
|
|
303
|
+
// s3object: S3Object,
|
|
304
|
+
// fileContent: ReadableStream<Uint8Array> | Uint8Array | string,
|
|
305
|
+
// s3ResourcePath: string | undefined
|
|
306
|
+
// ): Promise<Response> {
|
|
307
|
+
// const settings = await denoS3LightClientSettings(s3ResourcePath);
|
|
308
|
+
// const s3 = new S3Client(settings);
|
|
309
|
+
// return await s3.putObject(s3object.s3, fileContent);
|
|
310
|
+
// }
|
|
294
311
|
/**
|
|
295
312
|
* Get URLs needed for resuming a flow after this step
|
|
296
313
|
* @param approver approver name
|
package/dist/core/OpenAPI.js
CHANGED
|
@@ -148,6 +148,17 @@ export declare class HelpersService {
|
|
|
148
148
|
readBytesFrom?: number;
|
|
149
149
|
readBytesLength?: number;
|
|
150
150
|
}): CancelablePromise<WindmillFilePreview>;
|
|
151
|
+
/**
|
|
152
|
+
* Generate a unique URL to download the file
|
|
153
|
+
* @returns any Download URL
|
|
154
|
+
* @throws ApiError
|
|
155
|
+
*/
|
|
156
|
+
static generateDownloadUrl({ workspace, fileKey, }: {
|
|
157
|
+
workspace: string;
|
|
158
|
+
fileKey: string;
|
|
159
|
+
}): CancelablePromise<{
|
|
160
|
+
download_url: string;
|
|
161
|
+
}>;
|
|
151
162
|
/**
|
|
152
163
|
* Permanently delete file from S3
|
|
153
164
|
* @returns any Confirmation
|
|
@@ -156,6 +156,23 @@ class HelpersService {
|
|
|
156
156
|
},
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* Generate a unique URL to download the file
|
|
161
|
+
* @returns any Download URL
|
|
162
|
+
* @throws ApiError
|
|
163
|
+
*/
|
|
164
|
+
static generateDownloadUrl({ workspace, fileKey, }) {
|
|
165
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
166
|
+
method: 'GET',
|
|
167
|
+
url: '/w/{workspace}/job_helpers/generate_download_url',
|
|
168
|
+
path: {
|
|
169
|
+
'workspace': workspace,
|
|
170
|
+
},
|
|
171
|
+
query: {
|
|
172
|
+
'file_key': fileKey,
|
|
173
|
+
},
|
|
174
|
+
});
|
|
175
|
+
}
|
|
159
176
|
/**
|
|
160
177
|
* Permanently delete file from S3
|
|
161
178
|
* @returns any Confirmation
|