windmill-client 1.340.2 → 1.341.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 +7 -4
- package/dist/services.gen.d.ts +4 -0
- package/dist/services.gen.js +10 -0
- package/dist/types.gen.d.ts +12 -0
- package/package.json +1 -1
package/dist/core/OpenAPI.js
CHANGED
|
@@ -3,13 +3,16 @@ var _a, _b;
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.OpenAPI = exports.Interceptors = void 0;
|
|
5
5
|
const getEnv = (key) => {
|
|
6
|
-
var _a, _b, _c;
|
|
6
|
+
var _a, _b, _c, _d, _e;
|
|
7
7
|
if (typeof window === "undefined") {
|
|
8
|
+
if (typeof process !== "undefined") {
|
|
9
|
+
return (_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a[key];
|
|
10
|
+
}
|
|
8
11
|
// node
|
|
9
|
-
return (
|
|
12
|
+
return (_c = (_b = globalThis === null || globalThis === void 0 ? void 0 : globalThis.process) === null || _b === void 0 ? void 0 : _b.env) === null || _c === void 0 ? void 0 : _c[key];
|
|
10
13
|
}
|
|
11
14
|
// browser
|
|
12
|
-
return (
|
|
15
|
+
return (_e = (_d = window === null || window === void 0 ? void 0 : window.process) === null || _d === void 0 ? void 0 : _d.env) === null || _e === void 0 ? void 0 : _e[key];
|
|
13
16
|
};
|
|
14
17
|
const baseUrl = (_b = (_a = getEnv("BASE_INTERNAL_URL")) !== null && _a !== void 0 ? _a : getEnv("BASE_URL")) !== null && _b !== void 0 ? _b : "http://localhost:8000";
|
|
15
18
|
const baseUrlApi = (baseUrl !== null && baseUrl !== void 0 ? baseUrl : '') + "/api";
|
|
@@ -36,7 +39,7 @@ exports.OpenAPI = {
|
|
|
36
39
|
PASSWORD: undefined,
|
|
37
40
|
TOKEN: getEnv("WM_TOKEN"),
|
|
38
41
|
USERNAME: undefined,
|
|
39
|
-
VERSION: '1.
|
|
42
|
+
VERSION: '1.341.1',
|
|
40
43
|
WITH_CREDENTIALS: true,
|
|
41
44
|
interceptors: {
|
|
42
45
|
request: new Interceptors(),
|
package/dist/services.gen.d.ts
CHANGED
|
@@ -2193,6 +2193,10 @@ export declare class JobService {
|
|
|
2193
2193
|
* @param data The data for the request.
|
|
2194
2194
|
* @param data.workspace
|
|
2195
2195
|
* @param data.id
|
|
2196
|
+
* @param data.suspendedJob
|
|
2197
|
+
* @param data.resumeId
|
|
2198
|
+
* @param data.secret
|
|
2199
|
+
* @param data.approver
|
|
2196
2200
|
* @returns unknown result
|
|
2197
2201
|
* @throws ApiError
|
|
2198
2202
|
*/
|
package/dist/services.gen.js
CHANGED
|
@@ -4380,6 +4380,10 @@ class JobService {
|
|
|
4380
4380
|
* @param data The data for the request.
|
|
4381
4381
|
* @param data.workspace
|
|
4382
4382
|
* @param data.id
|
|
4383
|
+
* @param data.suspendedJob
|
|
4384
|
+
* @param data.resumeId
|
|
4385
|
+
* @param data.secret
|
|
4386
|
+
* @param data.approver
|
|
4383
4387
|
* @returns unknown result
|
|
4384
4388
|
* @throws ApiError
|
|
4385
4389
|
*/
|
|
@@ -4390,6 +4394,12 @@ class JobService {
|
|
|
4390
4394
|
path: {
|
|
4391
4395
|
workspace: data.workspace,
|
|
4392
4396
|
id: data.id
|
|
4397
|
+
},
|
|
4398
|
+
query: {
|
|
4399
|
+
suspended_job: data.suspendedJob,
|
|
4400
|
+
resume_id: data.resumeId,
|
|
4401
|
+
secret: data.secret,
|
|
4402
|
+
approver: data.approver
|
|
4393
4403
|
}
|
|
4394
4404
|
});
|
|
4395
4405
|
}
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -144,6 +144,8 @@ export type QueuedJob = {
|
|
|
144
144
|
mem_peak?: number;
|
|
145
145
|
tag: string;
|
|
146
146
|
priority?: number;
|
|
147
|
+
self_wait_time_ms?: number;
|
|
148
|
+
aggregate_wait_time_ms?: number;
|
|
147
149
|
};
|
|
148
150
|
export type CompletedJob = {
|
|
149
151
|
workspace_id?: string;
|
|
@@ -183,6 +185,8 @@ export type CompletedJob = {
|
|
|
183
185
|
tag: string;
|
|
184
186
|
priority?: number;
|
|
185
187
|
labels?: Array<(string)>;
|
|
188
|
+
self_wait_time_ms?: number;
|
|
189
|
+
aggregate_wait_time_ms?: number;
|
|
186
190
|
};
|
|
187
191
|
export type ObscuredJob = {
|
|
188
192
|
typ?: string;
|
|
@@ -3398,7 +3402,11 @@ export type GetCompletedJobData = {
|
|
|
3398
3402
|
};
|
|
3399
3403
|
export type GetCompletedJobResponse = CompletedJob;
|
|
3400
3404
|
export type GetCompletedJobResultData = {
|
|
3405
|
+
approver?: string;
|
|
3401
3406
|
id: string;
|
|
3407
|
+
resumeId?: number;
|
|
3408
|
+
secret?: string;
|
|
3409
|
+
suspendedJob?: string;
|
|
3402
3410
|
workspace: string;
|
|
3403
3411
|
};
|
|
3404
3412
|
export type GetCompletedJobResultResponse = unknown;
|
|
@@ -8714,7 +8722,11 @@ export type $OpenApiTs = {
|
|
|
8714
8722
|
'/w/{workspace}/jobs_u/completed/get_result/{id}': {
|
|
8715
8723
|
get: {
|
|
8716
8724
|
req: {
|
|
8725
|
+
approver?: string;
|
|
8717
8726
|
id: string;
|
|
8727
|
+
resumeId?: number;
|
|
8728
|
+
secret?: string;
|
|
8729
|
+
suspendedJob?: string;
|
|
8718
8730
|
workspace: string;
|
|
8719
8731
|
};
|
|
8720
8732
|
res: {
|