windmill-cli 1.480.1 → 1.482.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/esm/bootstrap/script_bootstrap.js +1 -1
- package/esm/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.js +1 -1
- package/esm/deps.js +1 -1
- package/esm/gen/core/OpenAPI.js +1 -1
- package/esm/gen/services.gen.js +383 -1
- package/esm/main.js +18 -15
- package/esm/metadata.js +9 -8
- package/esm/schedule.js +13 -2
- package/esm/script.js +2 -2
- package/esm/script_common.js +2 -2
- package/esm/sync.js +14 -5
- package/esm/trigger.js +21 -1
- package/esm/types.js +5 -1
- package/package.json +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/_create_walk_entry.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/_get_file_info_type.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/_is_same_path.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/_is_subdir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/_to_path_string.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/copy.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/empty_dir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/ensure_dir.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/ensure_file.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/ensure_link.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/ensure_symlink.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/eol.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/exists.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/expand_glob.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/mod.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/move.d.ts.map +1 -1
- package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/walk.d.ts.map +1 -1
- package/types/deps.d.ts +1 -1
- package/types/gen/services.gen.d.ts +187 -2
- package/types/gen/services.gen.d.ts.map +1 -1
- package/types/gen/types.gen.d.ts +394 -8
- package/types/gen/types.gen.d.ts.map +1 -1
- package/types/main.d.ts +1 -1
- package/types/main.d.ts.map +1 -1
- package/types/metadata.d.ts.map +1 -1
- package/types/schedule.d.ts +1 -0
- package/types/schedule.d.ts.map +1 -1
- package/types/sync.d.ts.map +1 -1
- package/types/trigger.d.ts +2 -1
- package/types/trigger.d.ts.map +1 -1
- package/types/types.d.ts +1 -1
- package/types/types.d.ts.map +1 -1
- /package/esm/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/_create_walk_entry.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/_get_file_info_type.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/_is_same_path.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/_is_subdir.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/_to_path_string.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/copy.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/empty_dir.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/ensure_dir.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/ensure_file.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/ensure_link.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/ensure_symlink.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/eol.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/exists.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/expand_glob.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/mod.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/move.js +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/walk.js +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/_create_walk_entry.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/_get_file_info_type.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/_is_same_path.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/_is_subdir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/_to_path_string.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/copy.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/empty_dir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/ensure_dir.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/ensure_file.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/ensure_link.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/ensure_symlink.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/eol.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/exists.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/expand_glob.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/mod.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/move.d.ts +0 -0
- /package/types/deps/jsr.io/@std/fs/{1.0.15 → 1.0.16}/walk.d.ts +0 -0
|
@@ -12,7 +12,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
12
12
|
var _RotatingFileHandler_maxBytes, _RotatingFileHandler_maxBackupCount, _RotatingFileHandler_currentFileSize;
|
|
13
13
|
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
14
14
|
import * as dntShim from "../../../../../_dnt.shims.js";
|
|
15
|
-
import { existsSync } from "../../fs/1.0.
|
|
15
|
+
import { existsSync } from "../../fs/1.0.16/exists.js";
|
|
16
16
|
import { FileHandler } from "./file_handler.js";
|
|
17
17
|
import { encoderSymbol, filenameSymbol, fileSymbol, modeSymbol, openOptionsSymbol, } from "./_file_handler_symbols.js";
|
|
18
18
|
/**
|
package/esm/deps.js
CHANGED
|
@@ -12,7 +12,7 @@ export { NpmProvider } from "./deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-r
|
|
|
12
12
|
export { Provider } from "./deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/upgrade/mod.js";
|
|
13
13
|
export { CompletionsCommand } from "./deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/completions/mod.js";
|
|
14
14
|
// std
|
|
15
|
-
export { ensureDir } from "./deps/jsr.io/@std/fs/1.0.
|
|
15
|
+
export { ensureDir } from "./deps/jsr.io/@std/fs/1.0.16/mod.js";
|
|
16
16
|
export { SEPARATOR as SEP } from "./deps/jsr.io/@std/path/1.0.8/mod.js";
|
|
17
17
|
export * as path from "./deps/jsr.io/@std/path/1.0.8/mod.js";
|
|
18
18
|
export { encodeHex } from "./deps/jsr.io/@std/encoding/1.0.4/mod.js";
|
package/esm/gen/core/OpenAPI.js
CHANGED
package/esm/gen/services.gen.js
CHANGED
|
@@ -3568,6 +3568,25 @@ export const getScriptDeploymentStatus = (data) => {
|
|
|
3568
3568
|
}
|
|
3569
3569
|
});
|
|
3570
3570
|
};
|
|
3571
|
+
/**
|
|
3572
|
+
* list selected jobs script/flow schemas grouped by (kind, path)
|
|
3573
|
+
* @param data The data for the request.
|
|
3574
|
+
* @param data.workspace
|
|
3575
|
+
* @param data.requestBody script args
|
|
3576
|
+
* @returns unknown result
|
|
3577
|
+
* @throws ApiError
|
|
3578
|
+
*/
|
|
3579
|
+
export const listSelectedJobGroups = (data) => {
|
|
3580
|
+
return __request(OpenAPI, {
|
|
3581
|
+
method: 'POST',
|
|
3582
|
+
url: '/w/{workspace}/jobs/list_selected_job_groups',
|
|
3583
|
+
path: {
|
|
3584
|
+
workspace: data.workspace
|
|
3585
|
+
},
|
|
3586
|
+
body: data.requestBody,
|
|
3587
|
+
mediaType: 'application/json'
|
|
3588
|
+
});
|
|
3589
|
+
};
|
|
3571
3590
|
/**
|
|
3572
3591
|
* run script by path
|
|
3573
3592
|
* @param data The data for the request.
|
|
@@ -4688,6 +4707,25 @@ export const customPathExists = (data) => {
|
|
|
4688
4707
|
}
|
|
4689
4708
|
});
|
|
4690
4709
|
};
|
|
4710
|
+
/**
|
|
4711
|
+
* sign s3 objects, to be used by anonymous users in public apps
|
|
4712
|
+
* @param data The data for the request.
|
|
4713
|
+
* @param data.workspace
|
|
4714
|
+
* @param data.requestBody s3 objects to sign
|
|
4715
|
+
* @returns S3Object signed s3 objects
|
|
4716
|
+
* @throws ApiError
|
|
4717
|
+
*/
|
|
4718
|
+
export const signS3Objects = (data) => {
|
|
4719
|
+
return __request(OpenAPI, {
|
|
4720
|
+
method: 'POST',
|
|
4721
|
+
url: '/w/{workspace}/apps/sign_s3_objects',
|
|
4722
|
+
path: {
|
|
4723
|
+
workspace: data.workspace
|
|
4724
|
+
},
|
|
4725
|
+
body: data.requestBody,
|
|
4726
|
+
mediaType: 'application/json'
|
|
4727
|
+
});
|
|
4728
|
+
};
|
|
4691
4729
|
/**
|
|
4692
4730
|
* executeComponent
|
|
4693
4731
|
* @param data The data for the request.
|
|
@@ -4807,6 +4845,25 @@ export const runFlowByPath = (data) => {
|
|
|
4807
4845
|
mediaType: 'application/json'
|
|
4808
4846
|
});
|
|
4809
4847
|
};
|
|
4848
|
+
/**
|
|
4849
|
+
* re-run multiple jobs
|
|
4850
|
+
* @param data The data for the request.
|
|
4851
|
+
* @param data.workspace
|
|
4852
|
+
* @param data.requestBody list of job ids to re run and arg tranforms
|
|
4853
|
+
* @returns string stream of created job uuids separated by \n. Lines may start with 'Error:'
|
|
4854
|
+
* @throws ApiError
|
|
4855
|
+
*/
|
|
4856
|
+
export const batchReRunJobs = (data) => {
|
|
4857
|
+
return __request(OpenAPI, {
|
|
4858
|
+
method: 'POST',
|
|
4859
|
+
url: '/w/{workspace}/jobs/run/batch_rerun_jobs',
|
|
4860
|
+
path: {
|
|
4861
|
+
workspace: data.workspace
|
|
4862
|
+
},
|
|
4863
|
+
body: data.requestBody,
|
|
4864
|
+
mediaType: 'application/json'
|
|
4865
|
+
});
|
|
4866
|
+
};
|
|
4810
4867
|
/**
|
|
4811
4868
|
* restart a completed flow at a given step
|
|
4812
4869
|
* @param data The data for the request.
|
|
@@ -5014,6 +5071,7 @@ export const runFlowPreview = (data) => {
|
|
|
5014
5071
|
* @param data.running filter on running jobs
|
|
5015
5072
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
5016
5073
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
5074
|
+
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
5017
5075
|
* @param data.tag filter on jobs with a given tag/worker group
|
|
5018
5076
|
* @param data.page which page to return (start at 1, default 1)
|
|
5019
5077
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
@@ -5047,6 +5105,7 @@ export const listQueue = (data) => {
|
|
|
5047
5105
|
running: data.running,
|
|
5048
5106
|
args: data.args,
|
|
5049
5107
|
result: data.result,
|
|
5108
|
+
allow_wildcards: data.allowWildcards,
|
|
5050
5109
|
tag: data.tag,
|
|
5051
5110
|
page: data.page,
|
|
5052
5111
|
per_page: data.perPage,
|
|
@@ -5121,6 +5180,84 @@ export const countCompletedJobs = (data) => {
|
|
|
5121
5180
|
* get the ids of all jobs matching the given filters
|
|
5122
5181
|
* @param data The data for the request.
|
|
5123
5182
|
* @param data.workspace
|
|
5183
|
+
* @param data.createdBy mask to filter exact matching user creator
|
|
5184
|
+
* @param data.label mask to filter exact matching job's label (job labels are completed jobs with as a result an object containing a string in the array at key 'wm_labels')
|
|
5185
|
+
* @param data.worker worker this job was ran on
|
|
5186
|
+
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
5187
|
+
* @param data.scriptPathExact mask to filter exact matching path
|
|
5188
|
+
* @param data.scriptPathStart mask to filter matching starting path
|
|
5189
|
+
* @param data.schedulePath mask to filter by schedule path
|
|
5190
|
+
* @param data.scriptHash mask to filter exact matching path
|
|
5191
|
+
* @param data.startedBefore filter on started before (inclusive) timestamp
|
|
5192
|
+
* @param data.startedAfter filter on started after (exclusive) timestamp
|
|
5193
|
+
* @param data.createdBefore filter on created before (inclusive) timestamp
|
|
5194
|
+
* @param data.createdAfter filter on created after (exclusive) timestamp
|
|
5195
|
+
* @param data.createdOrStartedBefore filter on created_at for non non started job and started_at otherwise before (inclusive) timestamp
|
|
5196
|
+
* @param data.running filter on running jobs
|
|
5197
|
+
* @param data.scheduledForBeforeNow filter on jobs scheduled_for before now (hence waitinf for a worker)
|
|
5198
|
+
* @param data.createdOrStartedAfter filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp
|
|
5199
|
+
* @param data.createdOrStartedAfterCompletedJobs filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp but only for the completed jobs
|
|
5200
|
+
* @param data.jobKinds filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
|
|
5201
|
+
* @param data.suspended filter on suspended jobs
|
|
5202
|
+
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
5203
|
+
* @param data.tag filter on jobs with a given tag/worker group
|
|
5204
|
+
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
5205
|
+
* @param data.page which page to return (start at 1, default 1)
|
|
5206
|
+
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
5207
|
+
* @param data.isSkipped is the job skipped
|
|
5208
|
+
* @param data.isFlowStep is the job a flow step
|
|
5209
|
+
* @param data.hasNullParent has null parent
|
|
5210
|
+
* @param data.success filter on successful jobs
|
|
5211
|
+
* @param data.allWorkspaces get jobs from all workspaces (only valid if request come from the `admins` workspace)
|
|
5212
|
+
* @param data.isNotSchedule is not a scheduled job
|
|
5213
|
+
* @returns string uuids of jobs
|
|
5214
|
+
* @throws ApiError
|
|
5215
|
+
*/
|
|
5216
|
+
export const listFilteredJobsUuids = (data) => {
|
|
5217
|
+
return __request(OpenAPI, {
|
|
5218
|
+
method: 'GET',
|
|
5219
|
+
url: '/w/{workspace}/jobs/list_filtered_uuids',
|
|
5220
|
+
path: {
|
|
5221
|
+
workspace: data.workspace
|
|
5222
|
+
},
|
|
5223
|
+
query: {
|
|
5224
|
+
created_by: data.createdBy,
|
|
5225
|
+
label: data.label,
|
|
5226
|
+
worker: data.worker,
|
|
5227
|
+
parent_job: data.parentJob,
|
|
5228
|
+
script_path_exact: data.scriptPathExact,
|
|
5229
|
+
script_path_start: data.scriptPathStart,
|
|
5230
|
+
schedule_path: data.schedulePath,
|
|
5231
|
+
script_hash: data.scriptHash,
|
|
5232
|
+
started_before: data.startedBefore,
|
|
5233
|
+
started_after: data.startedAfter,
|
|
5234
|
+
created_before: data.createdBefore,
|
|
5235
|
+
created_after: data.createdAfter,
|
|
5236
|
+
created_or_started_before: data.createdOrStartedBefore,
|
|
5237
|
+
running: data.running,
|
|
5238
|
+
scheduled_for_before_now: data.scheduledForBeforeNow,
|
|
5239
|
+
created_or_started_after: data.createdOrStartedAfter,
|
|
5240
|
+
created_or_started_after_completed_jobs: data.createdOrStartedAfterCompletedJobs,
|
|
5241
|
+
job_kinds: data.jobKinds,
|
|
5242
|
+
suspended: data.suspended,
|
|
5243
|
+
args: data.args,
|
|
5244
|
+
tag: data.tag,
|
|
5245
|
+
result: data.result,
|
|
5246
|
+
page: data.page,
|
|
5247
|
+
per_page: data.perPage,
|
|
5248
|
+
is_skipped: data.isSkipped,
|
|
5249
|
+
is_flow_step: data.isFlowStep,
|
|
5250
|
+
has_null_parent: data.hasNullParent,
|
|
5251
|
+
success: data.success,
|
|
5252
|
+
all_workspaces: data.allWorkspaces,
|
|
5253
|
+
is_not_schedule: data.isNotSchedule
|
|
5254
|
+
}
|
|
5255
|
+
});
|
|
5256
|
+
};
|
|
5257
|
+
/**
|
|
5258
|
+
* get the ids of all queued jobs matching the given filters
|
|
5259
|
+
* @param data The data for the request.
|
|
5260
|
+
* @param data.workspace
|
|
5124
5261
|
* @param data.orderDesc order by desc order (default true)
|
|
5125
5262
|
* @param data.createdBy mask to filter exact matching user creator
|
|
5126
5263
|
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
@@ -5137,6 +5274,7 @@ export const countCompletedJobs = (data) => {
|
|
|
5137
5274
|
* @param data.running filter on running jobs
|
|
5138
5275
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
5139
5276
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
5277
|
+
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
5140
5278
|
* @param data.tag filter on jobs with a given tag/worker group
|
|
5141
5279
|
* @param data.page which page to return (start at 1, default 1)
|
|
5142
5280
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
@@ -5146,7 +5284,7 @@ export const countCompletedJobs = (data) => {
|
|
|
5146
5284
|
* @returns string uuids of jobs
|
|
5147
5285
|
* @throws ApiError
|
|
5148
5286
|
*/
|
|
5149
|
-
export const
|
|
5287
|
+
export const listFilteredQueueUuids = (data) => {
|
|
5150
5288
|
return __request(OpenAPI, {
|
|
5151
5289
|
method: 'GET',
|
|
5152
5290
|
url: '/w/{workspace}/jobs/queue/list_filtered_uuids',
|
|
@@ -5170,6 +5308,7 @@ export const listFilteredUuids = (data) => {
|
|
|
5170
5308
|
running: data.running,
|
|
5171
5309
|
args: data.args,
|
|
5172
5310
|
result: data.result,
|
|
5311
|
+
allow_wildcards: data.allowWildcards,
|
|
5173
5312
|
tag: data.tag,
|
|
5174
5313
|
page: data.page,
|
|
5175
5314
|
per_page: data.perPage,
|
|
@@ -5217,6 +5356,7 @@ export const cancelSelection = (data) => {
|
|
|
5217
5356
|
* @param data.jobKinds filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
|
|
5218
5357
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
5219
5358
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
5359
|
+
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
5220
5360
|
* @param data.tag filter on jobs with a given tag/worker group
|
|
5221
5361
|
* @param data.page which page to return (start at 1, default 1)
|
|
5222
5362
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
@@ -5250,6 +5390,7 @@ export const listCompletedJobs = (data) => {
|
|
|
5250
5390
|
job_kinds: data.jobKinds,
|
|
5251
5391
|
args: data.args,
|
|
5252
5392
|
result: data.result,
|
|
5393
|
+
allow_wildcards: data.allowWildcards,
|
|
5253
5394
|
tag: data.tag,
|
|
5254
5395
|
page: data.page,
|
|
5255
5396
|
per_page: data.perPage,
|
|
@@ -5286,6 +5427,7 @@ export const listCompletedJobs = (data) => {
|
|
|
5286
5427
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
5287
5428
|
* @param data.tag filter on jobs with a given tag/worker group
|
|
5288
5429
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
5430
|
+
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
5289
5431
|
* @param data.page which page to return (start at 1, default 1)
|
|
5290
5432
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
5291
5433
|
* @param data.isSkipped is the job skipped
|
|
@@ -5327,6 +5469,7 @@ export const listJobs = (data) => {
|
|
|
5327
5469
|
args: data.args,
|
|
5328
5470
|
tag: data.tag,
|
|
5329
5471
|
result: data.result,
|
|
5472
|
+
allow_wildcards: data.allowWildcards,
|
|
5330
5473
|
page: data.page,
|
|
5331
5474
|
per_page: data.perPage,
|
|
5332
5475
|
is_skipped: data.isSkipped,
|
|
@@ -7092,6 +7235,228 @@ export const testMqttConnection = (data) => {
|
|
|
7092
7235
|
mediaType: 'application/json'
|
|
7093
7236
|
});
|
|
7094
7237
|
};
|
|
7238
|
+
/**
|
|
7239
|
+
* create gcp trigger
|
|
7240
|
+
* @param data The data for the request.
|
|
7241
|
+
* @param data.workspace
|
|
7242
|
+
* @param data.requestBody new gcp trigger
|
|
7243
|
+
* @returns string gcp trigger created
|
|
7244
|
+
* @throws ApiError
|
|
7245
|
+
*/
|
|
7246
|
+
export const createGcpTrigger = (data) => {
|
|
7247
|
+
return __request(OpenAPI, {
|
|
7248
|
+
method: 'POST',
|
|
7249
|
+
url: '/w/{workspace}/gcp_triggers/create',
|
|
7250
|
+
path: {
|
|
7251
|
+
workspace: data.workspace
|
|
7252
|
+
},
|
|
7253
|
+
body: data.requestBody,
|
|
7254
|
+
mediaType: 'application/json'
|
|
7255
|
+
});
|
|
7256
|
+
};
|
|
7257
|
+
/**
|
|
7258
|
+
* update gcp trigger
|
|
7259
|
+
* @param data The data for the request.
|
|
7260
|
+
* @param data.workspace
|
|
7261
|
+
* @param data.path
|
|
7262
|
+
* @param data.requestBody updated trigger
|
|
7263
|
+
* @returns string gcp trigger updated
|
|
7264
|
+
* @throws ApiError
|
|
7265
|
+
*/
|
|
7266
|
+
export const updateGcpTrigger = (data) => {
|
|
7267
|
+
return __request(OpenAPI, {
|
|
7268
|
+
method: 'POST',
|
|
7269
|
+
url: '/w/{workspace}/gcp_triggers/update/{path}',
|
|
7270
|
+
path: {
|
|
7271
|
+
workspace: data.workspace,
|
|
7272
|
+
path: data.path
|
|
7273
|
+
},
|
|
7274
|
+
body: data.requestBody,
|
|
7275
|
+
mediaType: 'application/json'
|
|
7276
|
+
});
|
|
7277
|
+
};
|
|
7278
|
+
/**
|
|
7279
|
+
* delete gcp trigger
|
|
7280
|
+
* @param data The data for the request.
|
|
7281
|
+
* @param data.workspace
|
|
7282
|
+
* @param data.path
|
|
7283
|
+
* @returns string gcp trigger deleted
|
|
7284
|
+
* @throws ApiError
|
|
7285
|
+
*/
|
|
7286
|
+
export const deleteGcpTrigger = (data) => {
|
|
7287
|
+
return __request(OpenAPI, {
|
|
7288
|
+
method: 'DELETE',
|
|
7289
|
+
url: '/w/{workspace}/gcp_triggers/delete/{path}',
|
|
7290
|
+
path: {
|
|
7291
|
+
workspace: data.workspace,
|
|
7292
|
+
path: data.path
|
|
7293
|
+
}
|
|
7294
|
+
});
|
|
7295
|
+
};
|
|
7296
|
+
/**
|
|
7297
|
+
* get gcp trigger
|
|
7298
|
+
* @param data The data for the request.
|
|
7299
|
+
* @param data.workspace
|
|
7300
|
+
* @param data.path
|
|
7301
|
+
* @returns GcpTrigger gcp trigger deleted
|
|
7302
|
+
* @throws ApiError
|
|
7303
|
+
*/
|
|
7304
|
+
export const getGcpTrigger = (data) => {
|
|
7305
|
+
return __request(OpenAPI, {
|
|
7306
|
+
method: 'GET',
|
|
7307
|
+
url: '/w/{workspace}/gcp_triggers/get/{path}',
|
|
7308
|
+
path: {
|
|
7309
|
+
workspace: data.workspace,
|
|
7310
|
+
path: data.path
|
|
7311
|
+
}
|
|
7312
|
+
});
|
|
7313
|
+
};
|
|
7314
|
+
/**
|
|
7315
|
+
* list gcp triggers
|
|
7316
|
+
* @param data The data for the request.
|
|
7317
|
+
* @param data.workspace
|
|
7318
|
+
* @param data.page which page to return (start at 1, default 1)
|
|
7319
|
+
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
7320
|
+
* @param data.path filter by path
|
|
7321
|
+
* @param data.isFlow
|
|
7322
|
+
* @param data.pathStart
|
|
7323
|
+
* @returns GcpTrigger gcp trigger list
|
|
7324
|
+
* @throws ApiError
|
|
7325
|
+
*/
|
|
7326
|
+
export const listGcpTriggers = (data) => {
|
|
7327
|
+
return __request(OpenAPI, {
|
|
7328
|
+
method: 'GET',
|
|
7329
|
+
url: '/w/{workspace}/gcp_triggers/list',
|
|
7330
|
+
path: {
|
|
7331
|
+
workspace: data.workspace
|
|
7332
|
+
},
|
|
7333
|
+
query: {
|
|
7334
|
+
page: data.page,
|
|
7335
|
+
per_page: data.perPage,
|
|
7336
|
+
path: data.path,
|
|
7337
|
+
is_flow: data.isFlow,
|
|
7338
|
+
path_start: data.pathStart
|
|
7339
|
+
}
|
|
7340
|
+
});
|
|
7341
|
+
};
|
|
7342
|
+
/**
|
|
7343
|
+
* does gcp trigger exists
|
|
7344
|
+
* @param data The data for the request.
|
|
7345
|
+
* @param data.workspace
|
|
7346
|
+
* @param data.path
|
|
7347
|
+
* @returns boolean gcp trigger exists
|
|
7348
|
+
* @throws ApiError
|
|
7349
|
+
*/
|
|
7350
|
+
export const existsGcpTrigger = (data) => {
|
|
7351
|
+
return __request(OpenAPI, {
|
|
7352
|
+
method: 'GET',
|
|
7353
|
+
url: '/w/{workspace}/gcp_triggers/exists/{path}',
|
|
7354
|
+
path: {
|
|
7355
|
+
workspace: data.workspace,
|
|
7356
|
+
path: data.path
|
|
7357
|
+
}
|
|
7358
|
+
});
|
|
7359
|
+
};
|
|
7360
|
+
/**
|
|
7361
|
+
* set enabled gcp trigger
|
|
7362
|
+
* @param data The data for the request.
|
|
7363
|
+
* @param data.workspace
|
|
7364
|
+
* @param data.path
|
|
7365
|
+
* @param data.requestBody updated gcp trigger enable
|
|
7366
|
+
* @returns string gcp trigger enabled set
|
|
7367
|
+
* @throws ApiError
|
|
7368
|
+
*/
|
|
7369
|
+
export const setGcpTriggerEnabled = (data) => {
|
|
7370
|
+
return __request(OpenAPI, {
|
|
7371
|
+
method: 'POST',
|
|
7372
|
+
url: '/w/{workspace}/gcp_triggers/setenabled/{path}',
|
|
7373
|
+
path: {
|
|
7374
|
+
workspace: data.workspace,
|
|
7375
|
+
path: data.path
|
|
7376
|
+
},
|
|
7377
|
+
body: data.requestBody,
|
|
7378
|
+
mediaType: 'application/json'
|
|
7379
|
+
});
|
|
7380
|
+
};
|
|
7381
|
+
/**
|
|
7382
|
+
* test gcp connection
|
|
7383
|
+
* @param data The data for the request.
|
|
7384
|
+
* @param data.workspace
|
|
7385
|
+
* @param data.requestBody test gcp connection
|
|
7386
|
+
* @returns string try to connect to a gcp broker
|
|
7387
|
+
* @throws ApiError
|
|
7388
|
+
*/
|
|
7389
|
+
export const testGcpConnection = (data) => {
|
|
7390
|
+
return __request(OpenAPI, {
|
|
7391
|
+
method: 'POST',
|
|
7392
|
+
url: '/w/{workspace}/gcp_triggers/test',
|
|
7393
|
+
path: {
|
|
7394
|
+
workspace: data.workspace
|
|
7395
|
+
},
|
|
7396
|
+
body: data.requestBody,
|
|
7397
|
+
mediaType: 'application/json'
|
|
7398
|
+
});
|
|
7399
|
+
};
|
|
7400
|
+
/**
|
|
7401
|
+
* delete gcp trigger
|
|
7402
|
+
* @param data The data for the request.
|
|
7403
|
+
* @param data.workspace
|
|
7404
|
+
* @param data.path
|
|
7405
|
+
* @param data.requestBody args to delete subscription from google cloud
|
|
7406
|
+
* @returns string gcp trigger deleted
|
|
7407
|
+
* @throws ApiError
|
|
7408
|
+
*/
|
|
7409
|
+
export const deleteGcpSubscription = (data) => {
|
|
7410
|
+
return __request(OpenAPI, {
|
|
7411
|
+
method: 'DELETE',
|
|
7412
|
+
url: '/w/{workspace}/gcp_triggers/subscriptions/delete/{path}',
|
|
7413
|
+
path: {
|
|
7414
|
+
workspace: data.workspace,
|
|
7415
|
+
path: data.path
|
|
7416
|
+
},
|
|
7417
|
+
body: data.requestBody,
|
|
7418
|
+
mediaType: 'application/json'
|
|
7419
|
+
});
|
|
7420
|
+
};
|
|
7421
|
+
/**
|
|
7422
|
+
* list all topics of google cloud service
|
|
7423
|
+
* @param data The data for the request.
|
|
7424
|
+
* @param data.workspace
|
|
7425
|
+
* @param data.path
|
|
7426
|
+
* @returns string get all google topics
|
|
7427
|
+
* @throws ApiError
|
|
7428
|
+
*/
|
|
7429
|
+
export const listGoogleTopics = (data) => {
|
|
7430
|
+
return __request(OpenAPI, {
|
|
7431
|
+
method: 'GET',
|
|
7432
|
+
url: '/w/{workspace}/gcp_triggers/topics/list/{path}',
|
|
7433
|
+
path: {
|
|
7434
|
+
workspace: data.workspace,
|
|
7435
|
+
path: data.path
|
|
7436
|
+
}
|
|
7437
|
+
});
|
|
7438
|
+
};
|
|
7439
|
+
/**
|
|
7440
|
+
* list all subscription of a give topic from google cloud service
|
|
7441
|
+
* @param data The data for the request.
|
|
7442
|
+
* @param data.workspace
|
|
7443
|
+
* @param data.path
|
|
7444
|
+
* @param data.requestBody args to get subscription's topic from google cloud
|
|
7445
|
+
* @returns string get all google topic subscriptions name
|
|
7446
|
+
* @throws ApiError
|
|
7447
|
+
*/
|
|
7448
|
+
export const listAllTgoogleTopicSubscriptions = (data) => {
|
|
7449
|
+
return __request(OpenAPI, {
|
|
7450
|
+
method: 'POST',
|
|
7451
|
+
url: '/w/{workspace}/gcp_triggers/subscriptions/list/{path}',
|
|
7452
|
+
path: {
|
|
7453
|
+
workspace: data.workspace,
|
|
7454
|
+
path: data.path
|
|
7455
|
+
},
|
|
7456
|
+
body: data.requestBody,
|
|
7457
|
+
mediaType: 'application/json'
|
|
7458
|
+
});
|
|
7459
|
+
};
|
|
7095
7460
|
/**
|
|
7096
7461
|
* check if postgres configuration is set to logical
|
|
7097
7462
|
* @param data The data for the request.
|
|
@@ -8117,6 +8482,21 @@ export const listAutoscalingEvents = (data) => {
|
|
|
8117
8482
|
}
|
|
8118
8483
|
});
|
|
8119
8484
|
};
|
|
8485
|
+
/**
|
|
8486
|
+
* create agent token
|
|
8487
|
+
* @param data The data for the request.
|
|
8488
|
+
* @param data.requestBody agent token
|
|
8489
|
+
* @returns string agent token created
|
|
8490
|
+
* @throws ApiError
|
|
8491
|
+
*/
|
|
8492
|
+
export const createAgentToken = (data) => {
|
|
8493
|
+
return __request(OpenAPI, {
|
|
8494
|
+
method: 'POST',
|
|
8495
|
+
url: '/agent_workers/create_agent_token',
|
|
8496
|
+
body: data.requestBody,
|
|
8497
|
+
mediaType: 'application/json'
|
|
8498
|
+
});
|
|
8499
|
+
};
|
|
8120
8500
|
/**
|
|
8121
8501
|
* get granular acls
|
|
8122
8502
|
* @param data The data for the request.
|
|
@@ -9098,6 +9478,7 @@ export const getConcurrencyKey = (data) => {
|
|
|
9098
9478
|
* @param data.args filter on jobs containing those args as a json subset (@> in postgres)
|
|
9099
9479
|
* @param data.tag filter on jobs with a given tag/worker group
|
|
9100
9480
|
* @param data.result filter on jobs containing those result as a json subset (@> in postgres)
|
|
9481
|
+
* @param data.allowWildcards allow wildcards (*) in the filter of label, tag, worker
|
|
9101
9482
|
* @param data.page which page to return (start at 1, default 1)
|
|
9102
9483
|
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
9103
9484
|
* @param data.isSkipped is the job skipped
|
|
@@ -9137,6 +9518,7 @@ export const listExtendedJobs = (data) => {
|
|
|
9137
9518
|
args: data.args,
|
|
9138
9519
|
tag: data.tag,
|
|
9139
9520
|
result: data.result,
|
|
9521
|
+
allow_wildcards: data.allowWildcards,
|
|
9140
9522
|
page: data.page,
|
|
9141
9523
|
per_page: data.perPage,
|
|
9142
9524
|
is_skipped: data.isSkipped,
|
package/esm/main.js
CHANGED
|
@@ -27,6 +27,7 @@ import { pull, push } from "./sync.js";
|
|
|
27
27
|
import { add as workspaceAdd } from "./workspace.js";
|
|
28
28
|
import workers from "./workers.js";
|
|
29
29
|
import queues from "./queues.js";
|
|
30
|
+
import { readLockfile } from "./metadata.js";
|
|
30
31
|
export { flow, app, script, workspace, resource, user, variable, hub, folder, schedule, trigger, sync, instance, dev, hubPull, pull, push, workspaceAdd, };
|
|
31
32
|
// addEventListener("error", (event) => {
|
|
32
33
|
// if (event.error) {
|
|
@@ -34,7 +35,7 @@ export { flow, app, script, workspace, resource, user, variable, hub, folder, sc
|
|
|
34
35
|
// console.error(JSON.stringify(event.error, null, 4));
|
|
35
36
|
// }
|
|
36
37
|
// });
|
|
37
|
-
export const VERSION = "1.
|
|
38
|
+
export const VERSION = "1.482.1";
|
|
38
39
|
const command = new Command()
|
|
39
40
|
.name("wmill")
|
|
40
41
|
.action(() => log.info(`Welcome to Windmill CLI ${VERSION}. Use -h for help.`))
|
|
@@ -49,21 +50,23 @@ const command = new Command()
|
|
|
49
50
|
.command("init", "Bootstrap a windmill project with a wmill.yaml file")
|
|
50
51
|
.action(async () => {
|
|
51
52
|
if (await dntShim.Deno.stat("wmill.yaml").catch(() => null)) {
|
|
52
|
-
log.error(colors.
|
|
53
|
-
return;
|
|
53
|
+
log.error(colors.green("wmill.yaml already exists"));
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
55
|
+
else {
|
|
56
|
+
await dntShim.Deno.writeTextFile("wmill.yaml", yamlStringify({
|
|
57
|
+
defaultTs: "bun",
|
|
58
|
+
includes: ["f/**"],
|
|
59
|
+
excludes: [],
|
|
60
|
+
codebases: [],
|
|
61
|
+
skipVariables: true,
|
|
62
|
+
skipResources: true,
|
|
63
|
+
skipSecrets: true,
|
|
64
|
+
includeSchedules: false,
|
|
65
|
+
includeTriggers: false,
|
|
66
|
+
}));
|
|
67
|
+
log.info(colors.green("wmill.yaml created"));
|
|
68
|
+
}
|
|
69
|
+
await readLockfile();
|
|
67
70
|
})
|
|
68
71
|
.command("app", app)
|
|
69
72
|
.command("flow", flow)
|
package/esm/metadata.js
CHANGED
|
@@ -11,7 +11,7 @@ import { getIsWin } from "./main.js";
|
|
|
11
11
|
export class LockfileGenerationError extends Error {
|
|
12
12
|
constructor(message) {
|
|
13
13
|
super(message);
|
|
14
|
-
this.name =
|
|
14
|
+
this.name = "LockfileGenerationError";
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
export async function generateAllMetadata() { }
|
|
@@ -146,7 +146,7 @@ export async function generateScriptMetadataInternal(scriptPath, workspace, opts
|
|
|
146
146
|
await updateScriptLock(workspace, scriptContent, language, remotePath, metadataParsedContent, rawReqs);
|
|
147
147
|
}
|
|
148
148
|
else {
|
|
149
|
-
metadataParsedContent.lock =
|
|
149
|
+
metadataParsedContent.lock = "";
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
else {
|
|
@@ -287,19 +287,19 @@ export async function updateFlow(workspace, flow_value, remotePath) {
|
|
|
287
287
|
export async function inferSchema(language, content, currentSchema, path) {
|
|
288
288
|
let inferedSchema;
|
|
289
289
|
if (language === "python3") {
|
|
290
|
-
const { parse_python } = await import(
|
|
290
|
+
const { parse_python } = await import("./wasm/python/windmill_parser_wasm.js");
|
|
291
291
|
inferedSchema = JSON.parse(parse_python(content));
|
|
292
292
|
}
|
|
293
293
|
else if (language === "nativets") {
|
|
294
|
-
const { parse_deno } = await import(
|
|
294
|
+
const { parse_deno } = await import("./wasm/ts/windmill_parser_wasm.js");
|
|
295
295
|
inferedSchema = JSON.parse(parse_deno(content));
|
|
296
296
|
}
|
|
297
297
|
else if (language === "bun") {
|
|
298
|
-
const { parse_deno } = await import(
|
|
298
|
+
const { parse_deno } = await import("./wasm/ts/windmill_parser_wasm.js");
|
|
299
299
|
inferedSchema = JSON.parse(parse_deno(content));
|
|
300
300
|
}
|
|
301
301
|
else if (language === "deno") {
|
|
302
|
-
const { parse_deno } = await import(
|
|
302
|
+
const { parse_deno } = await import("./wasm/ts/windmill_parser_wasm.js");
|
|
303
303
|
inferedSchema = JSON.parse(parse_deno(content));
|
|
304
304
|
}
|
|
305
305
|
else if (language === "go") {
|
|
@@ -393,7 +393,7 @@ export async function inferSchema(language, content, currentSchema, path) {
|
|
|
393
393
|
else if (language === "java") {
|
|
394
394
|
const { parse_java } = await import("./wasm/java/windmill_parser_wasm.js");
|
|
395
395
|
inferedSchema = JSON.parse(parse_java(content));
|
|
396
|
-
//
|
|
396
|
+
// for related places search: ADD_NEW_LANG
|
|
397
397
|
}
|
|
398
398
|
else {
|
|
399
399
|
throw new Error("Invalid language: " + language);
|
|
@@ -703,7 +703,7 @@ const WMILL_LOCKFILE = "wmill-lock.yaml";
|
|
|
703
703
|
export async function readLockfile() {
|
|
704
704
|
try {
|
|
705
705
|
const read = await yamlParseFile(WMILL_LOCKFILE);
|
|
706
|
-
if (typeof read == "object") {
|
|
706
|
+
if (typeof read == "object" && read != null) {
|
|
707
707
|
return read;
|
|
708
708
|
}
|
|
709
709
|
else {
|
|
@@ -713,6 +713,7 @@ export async function readLockfile() {
|
|
|
713
713
|
catch {
|
|
714
714
|
const lock = { locks: {} };
|
|
715
715
|
await dntShim.Deno.writeTextFile(WMILL_LOCKFILE, yamlStringify(lock, yamlOptions));
|
|
716
|
+
log.info(colors.green("wmill-lock.yaml created"));
|
|
716
717
|
return lock;
|
|
717
718
|
}
|
|
718
719
|
}
|