windmill-client 1.303.4 → 1.304.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/CacheTtl.d.ts +4 -0
- package/dist/models/CacheTtl.js +2 -0
- package/dist/models/FlowStatus.d.ts +1 -0
- package/dist/models/GitRepositorySettings.d.ts +1 -0
- package/dist/services/JobService.d.ts +20 -4
- package/dist/services/JobService.js +8 -4
- package/dist/services/ScheduleService.d.ts +5 -1
- package/dist/services/ScheduleService.js +2 -1
- package/package.json +1 -1
package/dist/core/OpenAPI.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export { AuditLog } from './models/AuditLog';
|
|
|
13
13
|
export type { Before } from './models/Before';
|
|
14
14
|
export type { BranchAll } from './models/BranchAll';
|
|
15
15
|
export type { BranchOne } from './models/BranchOne';
|
|
16
|
+
export type { CacheTtl } from './models/CacheTtl';
|
|
16
17
|
export type { ClientName } from './models/ClientName';
|
|
17
18
|
export { CompletedJob } from './models/CompletedJob';
|
|
18
19
|
export type { ConcurrencyGroup } from './models/ConcurrencyGroup';
|
|
@@ -2,5 +2,6 @@ export type GitRepositorySettings = {
|
|
|
2
2
|
script_path: string;
|
|
3
3
|
git_repo_resource_path: string;
|
|
4
4
|
use_individual_branch?: boolean;
|
|
5
|
+
group_by_folder?: boolean;
|
|
5
6
|
exclude_types_override?: Array<'script' | 'flow' | 'app' | 'folder' | 'resource' | 'variable' | 'secret' | 'resourcetype' | 'schedule' | 'user' | 'group'>;
|
|
6
7
|
};
|
|
@@ -14,7 +14,7 @@ export declare class JobService {
|
|
|
14
14
|
* @returns string job created
|
|
15
15
|
* @throws ApiError
|
|
16
16
|
*/
|
|
17
|
-
static runScriptByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, tag, jobId, invisibleToOwner, }: {
|
|
17
|
+
static runScriptByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, tag, cacheTtl, jobId, invisibleToOwner, }: {
|
|
18
18
|
workspace: string;
|
|
19
19
|
path: string;
|
|
20
20
|
/**
|
|
@@ -37,6 +37,10 @@ export declare class JobService {
|
|
|
37
37
|
* Override the tag to use
|
|
38
38
|
*/
|
|
39
39
|
tag?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
|
|
42
|
+
*/
|
|
43
|
+
cacheTtl?: string;
|
|
40
44
|
/**
|
|
41
45
|
* The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
|
|
42
46
|
*/
|
|
@@ -83,7 +87,7 @@ export declare class JobService {
|
|
|
83
87
|
* @returns any job result
|
|
84
88
|
* @throws ApiError
|
|
85
89
|
*/
|
|
86
|
-
static runWaitResultScriptByPath({ workspace, path, requestBody, parentJob, tag, jobId, includeHeader, queueLimit, }: {
|
|
90
|
+
static runWaitResultScriptByPath({ workspace, path, requestBody, parentJob, tag, cacheTtl, jobId, includeHeader, queueLimit, }: {
|
|
87
91
|
workspace: string;
|
|
88
92
|
path: string;
|
|
89
93
|
/**
|
|
@@ -98,6 +102,10 @@ export declare class JobService {
|
|
|
98
102
|
* Override the tag to use
|
|
99
103
|
*/
|
|
100
104
|
tag?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
|
|
107
|
+
*/
|
|
108
|
+
cacheTtl?: string;
|
|
101
109
|
/**
|
|
102
110
|
* The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
|
|
103
111
|
*/
|
|
@@ -119,7 +127,7 @@ export declare class JobService {
|
|
|
119
127
|
* @returns any job result
|
|
120
128
|
* @throws ApiError
|
|
121
129
|
*/
|
|
122
|
-
static runWaitResultScriptByPathGet({ workspace, path, parentJob, tag, jobId, includeHeader, queueLimit, payload, }: {
|
|
130
|
+
static runWaitResultScriptByPathGet({ workspace, path, parentJob, tag, cacheTtl, jobId, includeHeader, queueLimit, payload, }: {
|
|
123
131
|
workspace: string;
|
|
124
132
|
path: string;
|
|
125
133
|
/**
|
|
@@ -130,6 +138,10 @@ export declare class JobService {
|
|
|
130
138
|
* Override the tag to use
|
|
131
139
|
*/
|
|
132
140
|
tag?: string;
|
|
141
|
+
/**
|
|
142
|
+
* Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
|
|
143
|
+
*/
|
|
144
|
+
cacheTtl?: string;
|
|
133
145
|
/**
|
|
134
146
|
* The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
|
|
135
147
|
*/
|
|
@@ -317,7 +329,7 @@ export declare class JobService {
|
|
|
317
329
|
* @returns string job created
|
|
318
330
|
* @throws ApiError
|
|
319
331
|
*/
|
|
320
|
-
static runScriptByHash({ workspace, hash, requestBody, scheduledFor, scheduledInSecs, parentJob, tag, jobId, includeHeader, invisibleToOwner, }: {
|
|
332
|
+
static runScriptByHash({ workspace, hash, requestBody, scheduledFor, scheduledInSecs, parentJob, tag, cacheTtl, jobId, includeHeader, invisibleToOwner, }: {
|
|
321
333
|
workspace: string;
|
|
322
334
|
hash: string;
|
|
323
335
|
/**
|
|
@@ -340,6 +352,10 @@ export declare class JobService {
|
|
|
340
352
|
* Override the tag to use
|
|
341
353
|
*/
|
|
342
354
|
tag?: string;
|
|
355
|
+
/**
|
|
356
|
+
* Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
|
|
357
|
+
*/
|
|
358
|
+
cacheTtl?: string;
|
|
343
359
|
/**
|
|
344
360
|
* The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
|
|
345
361
|
*/
|
|
@@ -9,7 +9,7 @@ class JobService {
|
|
|
9
9
|
* @returns string job created
|
|
10
10
|
* @throws ApiError
|
|
11
11
|
*/
|
|
12
|
-
static runScriptByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, tag, jobId, invisibleToOwner, }) {
|
|
12
|
+
static runScriptByPath({ workspace, path, requestBody, scheduledFor, scheduledInSecs, parentJob, tag, cacheTtl, jobId, invisibleToOwner, }) {
|
|
13
13
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
14
14
|
method: 'POST',
|
|
15
15
|
url: '/w/{workspace}/jobs/run/p/{path}',
|
|
@@ -22,6 +22,7 @@ class JobService {
|
|
|
22
22
|
'scheduled_in_secs': scheduledInSecs,
|
|
23
23
|
'parent_job': parentJob,
|
|
24
24
|
'tag': tag,
|
|
25
|
+
'cache_ttl': cacheTtl,
|
|
25
26
|
'job_id': jobId,
|
|
26
27
|
'invisible_to_owner': invisibleToOwner,
|
|
27
28
|
},
|
|
@@ -57,7 +58,7 @@ class JobService {
|
|
|
57
58
|
* @returns any job result
|
|
58
59
|
* @throws ApiError
|
|
59
60
|
*/
|
|
60
|
-
static runWaitResultScriptByPath({ workspace, path, requestBody, parentJob, tag, jobId, includeHeader, queueLimit, }) {
|
|
61
|
+
static runWaitResultScriptByPath({ workspace, path, requestBody, parentJob, tag, cacheTtl, jobId, includeHeader, queueLimit, }) {
|
|
61
62
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
62
63
|
method: 'POST',
|
|
63
64
|
url: '/w/{workspace}/jobs/run_wait_result/p/{path}',
|
|
@@ -68,6 +69,7 @@ class JobService {
|
|
|
68
69
|
query: {
|
|
69
70
|
'parent_job': parentJob,
|
|
70
71
|
'tag': tag,
|
|
72
|
+
'cache_ttl': cacheTtl,
|
|
71
73
|
'job_id': jobId,
|
|
72
74
|
'include_header': includeHeader,
|
|
73
75
|
'queue_limit': queueLimit,
|
|
@@ -81,7 +83,7 @@ class JobService {
|
|
|
81
83
|
* @returns any job result
|
|
82
84
|
* @throws ApiError
|
|
83
85
|
*/
|
|
84
|
-
static runWaitResultScriptByPathGet({ workspace, path, parentJob, tag, jobId, includeHeader, queueLimit, payload, }) {
|
|
86
|
+
static runWaitResultScriptByPathGet({ workspace, path, parentJob, tag, cacheTtl, jobId, includeHeader, queueLimit, payload, }) {
|
|
85
87
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
86
88
|
method: 'GET',
|
|
87
89
|
url: '/w/{workspace}/jobs/run_wait_result/p/{path}',
|
|
@@ -92,6 +94,7 @@ class JobService {
|
|
|
92
94
|
query: {
|
|
93
95
|
'parent_job': parentJob,
|
|
94
96
|
'tag': tag,
|
|
97
|
+
'cache_ttl': cacheTtl,
|
|
95
98
|
'job_id': jobId,
|
|
96
99
|
'include_header': includeHeader,
|
|
97
100
|
'queue_limit': queueLimit,
|
|
@@ -218,7 +221,7 @@ class JobService {
|
|
|
218
221
|
* @returns string job created
|
|
219
222
|
* @throws ApiError
|
|
220
223
|
*/
|
|
221
|
-
static runScriptByHash({ workspace, hash, requestBody, scheduledFor, scheduledInSecs, parentJob, tag, jobId, includeHeader, invisibleToOwner, }) {
|
|
224
|
+
static runScriptByHash({ workspace, hash, requestBody, scheduledFor, scheduledInSecs, parentJob, tag, cacheTtl, jobId, includeHeader, invisibleToOwner, }) {
|
|
222
225
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
223
226
|
method: 'POST',
|
|
224
227
|
url: '/w/{workspace}/jobs/run/h/{hash}',
|
|
@@ -231,6 +234,7 @@ class JobService {
|
|
|
231
234
|
'scheduled_in_secs': scheduledInSecs,
|
|
232
235
|
'parent_job': parentJob,
|
|
233
236
|
'tag': tag,
|
|
237
|
+
'cache_ttl': cacheTtl,
|
|
234
238
|
'job_id': jobId,
|
|
235
239
|
'include_header': includeHeader,
|
|
236
240
|
'invisible_to_owner': invisibleToOwner,
|
|
@@ -90,7 +90,7 @@ export declare class ScheduleService {
|
|
|
90
90
|
* @returns Schedule schedule list
|
|
91
91
|
* @throws ApiError
|
|
92
92
|
*/
|
|
93
|
-
static listSchedules({ workspace, page, perPage, path, isFlow, }: {
|
|
93
|
+
static listSchedules({ workspace, page, perPage, args, path, isFlow, }: {
|
|
94
94
|
workspace: string;
|
|
95
95
|
/**
|
|
96
96
|
* which page to return (start at 1, default 1)
|
|
@@ -100,6 +100,10 @@ export declare class ScheduleService {
|
|
|
100
100
|
* number of items to return for a given page (default 30, max 100)
|
|
101
101
|
*/
|
|
102
102
|
perPage?: number;
|
|
103
|
+
/**
|
|
104
|
+
* filter on jobs containing those args as a json subset (@> in postgres)
|
|
105
|
+
*/
|
|
106
|
+
args?: string;
|
|
103
107
|
/**
|
|
104
108
|
* filter by path
|
|
105
109
|
*/
|
|
@@ -117,7 +117,7 @@ class ScheduleService {
|
|
|
117
117
|
* @returns Schedule schedule list
|
|
118
118
|
* @throws ApiError
|
|
119
119
|
*/
|
|
120
|
-
static listSchedules({ workspace, page, perPage, path, isFlow, }) {
|
|
120
|
+
static listSchedules({ workspace, page, perPage, args, path, isFlow, }) {
|
|
121
121
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
122
122
|
method: 'GET',
|
|
123
123
|
url: '/w/{workspace}/schedules/list',
|
|
@@ -127,6 +127,7 @@ class ScheduleService {
|
|
|
127
127
|
query: {
|
|
128
128
|
'page': page,
|
|
129
129
|
'per_page': perPage,
|
|
130
|
+
'args': args,
|
|
130
131
|
'path': path,
|
|
131
132
|
'is_flow': isFlow,
|
|
132
133
|
},
|