windmill-client 1.212.0 → 1.213.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.
@@ -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.212.0',
6
+ VERSION: '1.213.0',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
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';
@@ -0,0 +1,7 @@
1
+ export type WindmillFileMetadata = {
2
+ mime_type?: string;
3
+ size_in_bytes?: number;
4
+ last_modified?: string;
5
+ expires?: string;
6
+ version_id?: string;
7
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /* generated using openapi-typescript-codegen -- do no edit */
3
+ /* istanbul ignore file */
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +1,7 @@
1
1
  export type WindmillFilePreview = {
2
- mime_type?: string;
3
- last_modified?: string;
4
- size_in_bytes?: number;
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
- file_count: number;
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, from, length, separator, }: {
55
+ static loadFilePreview({ workspace, fileKey, fileSizeInBytes, fileMimeType, csvSeparator, readBytesFrom, readBytesLength, }: {
44
56
  workspace: string;
45
57
  fileKey: string;
46
- from?: number;
47
- length?: number;
48
- separator?: string;
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, from, length, separator, }) {
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
- 'from': from,
66
- 'length': length,
67
- 'separator': separator,
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
  }
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.212.0",
4
+ "version": "1.213.0",
5
5
  "author": "Ruben Fiszel",
6
6
  "license": "Apache 2.0",
7
7
  "devDependencies": {