windmill-client 1.212.0 → 1.214.0
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 +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/models/WindmillFileMetadata.d.ts +7 -0
- package/dist/models/WindmillFileMetadata.js +6 -0
- package/dist/models/WindmillFilePreview.d.ts +3 -10
- package/dist/services/HelpersService.d.ts +20 -6
- package/dist/services/HelpersService.js +28 -5
- package/package.json +1 -1
package/dist/core/OpenAPI.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -123,6 +123,7 @@ export type { User } from './models/User';
|
|
|
123
123
|
export type { Username } from './models/Username';
|
|
124
124
|
export type { UserWorkspaceList } from './models/UserWorkspaceList';
|
|
125
125
|
export type { VersionId } from './models/VersionId';
|
|
126
|
+
export type { WindmillFileMetadata } from './models/WindmillFileMetadata';
|
|
126
127
|
export { WindmillFilePreview } from './models/WindmillFilePreview';
|
|
127
128
|
export type { WindmillLargeFile } from './models/WindmillLargeFile';
|
|
128
129
|
export type { WorkerPing } from './models/WorkerPing';
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
export type WindmillFilePreview = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
expires?: string;
|
|
6
|
-
version_id?: string;
|
|
7
|
-
content_preview: {
|
|
8
|
-
msg?: string;
|
|
9
|
-
content?: string;
|
|
10
|
-
content_type: WindmillFilePreview.content_type;
|
|
11
|
-
};
|
|
2
|
+
msg?: string;
|
|
3
|
+
content?: string;
|
|
4
|
+
content_type: WindmillFilePreview.content_type;
|
|
12
5
|
};
|
|
13
6
|
export declare namespace WindmillFilePreview {
|
|
14
7
|
enum content_type {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { WindmillFileMetadata } from '../models/WindmillFileMetadata';
|
|
1
2
|
import type { WindmillFilePreview } from '../models/WindmillFilePreview';
|
|
2
3
|
import type { WindmillLargeFile } from '../models/WindmillLargeFile';
|
|
3
4
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
@@ -29,22 +30,35 @@ export declare class HelpersService {
|
|
|
29
30
|
* @returns any List of file keys
|
|
30
31
|
* @throws ApiError
|
|
31
32
|
*/
|
|
32
|
-
static listStoredFiles({ workspace, }: {
|
|
33
|
+
static listStoredFiles({ workspace, maxKeys, marker, }: {
|
|
33
34
|
workspace: string;
|
|
35
|
+
maxKeys: number;
|
|
36
|
+
marker?: string;
|
|
34
37
|
}): CancelablePromise<{
|
|
35
|
-
|
|
38
|
+
next_marker?: string;
|
|
36
39
|
windmill_large_files: Array<WindmillLargeFile>;
|
|
37
40
|
}>;
|
|
41
|
+
/**
|
|
42
|
+
* Load metadata of the file
|
|
43
|
+
* @returns WindmillFileMetadata FileMetadata
|
|
44
|
+
* @throws ApiError
|
|
45
|
+
*/
|
|
46
|
+
static loadFileMetadata({ workspace, fileKey, }: {
|
|
47
|
+
workspace: string;
|
|
48
|
+
fileKey: string;
|
|
49
|
+
}): CancelablePromise<WindmillFileMetadata>;
|
|
38
50
|
/**
|
|
39
51
|
* Load a preview of the file
|
|
40
52
|
* @returns WindmillFilePreview FilePreview
|
|
41
53
|
* @throws ApiError
|
|
42
54
|
*/
|
|
43
|
-
static loadFilePreview({ workspace, fileKey,
|
|
55
|
+
static loadFilePreview({ workspace, fileKey, fileSizeInBytes, fileMimeType, csvSeparator, readBytesFrom, readBytesLength, }: {
|
|
44
56
|
workspace: string;
|
|
45
57
|
fileKey: string;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
58
|
+
fileSizeInBytes?: number;
|
|
59
|
+
fileMimeType?: string;
|
|
60
|
+
csvSeparator?: string;
|
|
61
|
+
readBytesFrom?: number;
|
|
62
|
+
readBytesLength?: number;
|
|
49
63
|
}): CancelablePromise<WindmillFilePreview>;
|
|
50
64
|
}
|
|
@@ -39,13 +39,34 @@ class HelpersService {
|
|
|
39
39
|
* @returns any List of file keys
|
|
40
40
|
* @throws ApiError
|
|
41
41
|
*/
|
|
42
|
-
static listStoredFiles({ workspace, }) {
|
|
42
|
+
static listStoredFiles({ workspace, maxKeys, marker, }) {
|
|
43
43
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
44
44
|
method: 'GET',
|
|
45
45
|
url: '/w/{workspace}/job_helpers/list_stored_files',
|
|
46
46
|
path: {
|
|
47
47
|
'workspace': workspace,
|
|
48
48
|
},
|
|
49
|
+
query: {
|
|
50
|
+
'max_keys': maxKeys,
|
|
51
|
+
'marker': marker,
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Load metadata of the file
|
|
57
|
+
* @returns WindmillFileMetadata FileMetadata
|
|
58
|
+
* @throws ApiError
|
|
59
|
+
*/
|
|
60
|
+
static loadFileMetadata({ workspace, fileKey, }) {
|
|
61
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
62
|
+
method: 'GET',
|
|
63
|
+
url: '/w/{workspace}/job_helpers/load_file_metadata',
|
|
64
|
+
path: {
|
|
65
|
+
'workspace': workspace,
|
|
66
|
+
},
|
|
67
|
+
query: {
|
|
68
|
+
'file_key': fileKey,
|
|
69
|
+
},
|
|
49
70
|
});
|
|
50
71
|
}
|
|
51
72
|
/**
|
|
@@ -53,7 +74,7 @@ class HelpersService {
|
|
|
53
74
|
* @returns WindmillFilePreview FilePreview
|
|
54
75
|
* @throws ApiError
|
|
55
76
|
*/
|
|
56
|
-
static loadFilePreview({ workspace, fileKey,
|
|
77
|
+
static loadFilePreview({ workspace, fileKey, fileSizeInBytes, fileMimeType, csvSeparator, readBytesFrom, readBytesLength, }) {
|
|
57
78
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
58
79
|
method: 'GET',
|
|
59
80
|
url: '/w/{workspace}/job_helpers/load_file_preview',
|
|
@@ -62,9 +83,11 @@ class HelpersService {
|
|
|
62
83
|
},
|
|
63
84
|
query: {
|
|
64
85
|
'file_key': fileKey,
|
|
65
|
-
'
|
|
66
|
-
'
|
|
67
|
-
'
|
|
86
|
+
'file_size_in_bytes': fileSizeInBytes,
|
|
87
|
+
'file_mime_type': fileMimeType,
|
|
88
|
+
'csv_separator': csvSeparator,
|
|
89
|
+
'read_bytes_from': readBytesFrom,
|
|
90
|
+
'read_bytes_length': readBytesLength,
|
|
68
91
|
},
|
|
69
92
|
});
|
|
70
93
|
}
|