windmill-client 1.259.2 → 1.260.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/core/OpenAPI.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export type LargeFileStorage = {
|
|
2
2
|
type?: LargeFileStorage.type;
|
|
3
3
|
s3_resource_path?: string;
|
|
4
|
+
azure_blob_resource_path?: string;
|
|
4
5
|
public_resource?: boolean;
|
|
5
6
|
};
|
|
6
7
|
export declare namespace LargeFileStorage {
|
|
7
8
|
enum type {
|
|
8
|
-
S3STORAGE = "S3Storage"
|
|
9
|
+
S3STORAGE = "S3Storage",
|
|
10
|
+
AZURE_BLOB_STORAGE = "AzureBlobStorage"
|
|
9
11
|
}
|
|
10
12
|
}
|
|
@@ -6,5 +6,6 @@ var LargeFileStorage;
|
|
|
6
6
|
let type;
|
|
7
7
|
(function (type) {
|
|
8
8
|
type["S3STORAGE"] = "S3Storage";
|
|
9
|
+
type["AZURE_BLOB_STORAGE"] = "AzureBlobStorage";
|
|
9
10
|
})(type = LargeFileStorage.type || (LargeFileStorage.type = {}));
|
|
10
11
|
})(LargeFileStorage || (exports.LargeFileStorage = LargeFileStorage = {}));
|
|
@@ -188,7 +188,7 @@ export declare class HelpersService {
|
|
|
188
188
|
* @returns any File upload status
|
|
189
189
|
* @throws ApiError
|
|
190
190
|
*/
|
|
191
|
-
static fileUpload({ workspace, requestBody, fileKey, fileExtension, s3ResourcePath, }: {
|
|
191
|
+
static fileUpload({ workspace, requestBody, fileKey, fileExtension, s3ResourcePath, resourceType, }: {
|
|
192
192
|
workspace: string;
|
|
193
193
|
/**
|
|
194
194
|
* File content
|
|
@@ -197,6 +197,7 @@ export declare class HelpersService {
|
|
|
197
197
|
fileKey?: string;
|
|
198
198
|
fileExtension?: string;
|
|
199
199
|
s3ResourcePath?: string;
|
|
200
|
+
resourceType?: string;
|
|
200
201
|
}): CancelablePromise<{
|
|
201
202
|
file_key: string;
|
|
202
203
|
}>;
|
|
@@ -205,9 +206,10 @@ export declare class HelpersService {
|
|
|
205
206
|
* @returns binary Chunk of the downloaded file
|
|
206
207
|
* @throws ApiError
|
|
207
208
|
*/
|
|
208
|
-
static fileDownload({ workspace, fileKey, s3ResourcePath, }: {
|
|
209
|
+
static fileDownload({ workspace, fileKey, s3ResourcePath, resourceType, }: {
|
|
209
210
|
workspace: string;
|
|
210
211
|
fileKey: string;
|
|
211
212
|
s3ResourcePath?: string;
|
|
213
|
+
resourceType?: string;
|
|
212
214
|
}): CancelablePromise<Blob>;
|
|
213
215
|
}
|
|
@@ -220,7 +220,7 @@ class HelpersService {
|
|
|
220
220
|
* @returns any File upload status
|
|
221
221
|
* @throws ApiError
|
|
222
222
|
*/
|
|
223
|
-
static fileUpload({ workspace, requestBody, fileKey, fileExtension, s3ResourcePath, }) {
|
|
223
|
+
static fileUpload({ workspace, requestBody, fileKey, fileExtension, s3ResourcePath, resourceType, }) {
|
|
224
224
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
225
225
|
method: 'POST',
|
|
226
226
|
url: '/w/{workspace}/job_helpers/upload_s3_file',
|
|
@@ -231,6 +231,7 @@ class HelpersService {
|
|
|
231
231
|
'file_key': fileKey,
|
|
232
232
|
'file_extension': fileExtension,
|
|
233
233
|
's3_resource_path': s3ResourcePath,
|
|
234
|
+
'resource_type': resourceType,
|
|
234
235
|
},
|
|
235
236
|
body: requestBody,
|
|
236
237
|
mediaType: 'application/octet-stream',
|
|
@@ -241,7 +242,7 @@ class HelpersService {
|
|
|
241
242
|
* @returns binary Chunk of the downloaded file
|
|
242
243
|
* @throws ApiError
|
|
243
244
|
*/
|
|
244
|
-
static fileDownload({ workspace, fileKey, s3ResourcePath, }) {
|
|
245
|
+
static fileDownload({ workspace, fileKey, s3ResourcePath, resourceType, }) {
|
|
245
246
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
246
247
|
method: 'GET',
|
|
247
248
|
url: '/w/{workspace}/job_helpers/download_s3_file',
|
|
@@ -251,6 +252,7 @@ class HelpersService {
|
|
|
251
252
|
query: {
|
|
252
253
|
'file_key': fileKey,
|
|
253
254
|
's3_resource_path': s3ResourcePath,
|
|
255
|
+
'resource_type': resourceType,
|
|
254
256
|
},
|
|
255
257
|
});
|
|
256
258
|
}
|