windmill-client 1.168.3 → 1.170.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
CHANGED
|
@@ -415,6 +415,16 @@ export declare class JobService {
|
|
|
415
415
|
}): CancelablePromise<{
|
|
416
416
|
database_length: number;
|
|
417
417
|
}>;
|
|
418
|
+
/**
|
|
419
|
+
* get completed count
|
|
420
|
+
* @returns any completed count
|
|
421
|
+
* @throws ApiError
|
|
422
|
+
*/
|
|
423
|
+
static getCompletedCount({ workspace, }: {
|
|
424
|
+
workspace: string;
|
|
425
|
+
}): CancelablePromise<{
|
|
426
|
+
database_length: number;
|
|
427
|
+
}>;
|
|
418
428
|
/**
|
|
419
429
|
* cancel all jobs
|
|
420
430
|
* @returns string uuids of canceled jobs
|
|
@@ -294,6 +294,20 @@ class JobService {
|
|
|
294
294
|
},
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
|
+
/**
|
|
298
|
+
* get completed count
|
|
299
|
+
* @returns any completed count
|
|
300
|
+
* @throws ApiError
|
|
301
|
+
*/
|
|
302
|
+
static getCompletedCount({ workspace, }) {
|
|
303
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
304
|
+
method: 'GET',
|
|
305
|
+
url: '/w/{workspace}/jobs/completed/count',
|
|
306
|
+
path: {
|
|
307
|
+
'workspace': workspace,
|
|
308
|
+
},
|
|
309
|
+
});
|
|
310
|
+
}
|
|
297
311
|
/**
|
|
298
312
|
* cancel all jobs
|
|
299
313
|
* @returns string uuids of canceled jobs
|
|
@@ -42,6 +42,27 @@ export declare class ScriptService {
|
|
|
42
42
|
language: string;
|
|
43
43
|
summary?: string;
|
|
44
44
|
}>;
|
|
45
|
+
/**
|
|
46
|
+
* query hub scripts by similarity
|
|
47
|
+
* @returns any script details
|
|
48
|
+
* @throws ApiError
|
|
49
|
+
*/
|
|
50
|
+
static queryHubScripts({ text, kind, limit, }: {
|
|
51
|
+
/**
|
|
52
|
+
* query text
|
|
53
|
+
*/
|
|
54
|
+
text: string;
|
|
55
|
+
/**
|
|
56
|
+
* query scripts kind
|
|
57
|
+
*/
|
|
58
|
+
kind?: string;
|
|
59
|
+
/**
|
|
60
|
+
* query limit
|
|
61
|
+
*/
|
|
62
|
+
limit?: number;
|
|
63
|
+
}): CancelablePromise<Array<{
|
|
64
|
+
id: string;
|
|
65
|
+
}>>;
|
|
45
66
|
/**
|
|
46
67
|
* list all available scripts
|
|
47
68
|
* @returns Script All available scripts
|
|
@@ -43,6 +43,22 @@ class ScriptService {
|
|
|
43
43
|
},
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* query hub scripts by similarity
|
|
48
|
+
* @returns any script details
|
|
49
|
+
* @throws ApiError
|
|
50
|
+
*/
|
|
51
|
+
static queryHubScripts({ text, kind, limit, }) {
|
|
52
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
53
|
+
method: 'GET',
|
|
54
|
+
url: '/scripts/hub/query',
|
|
55
|
+
query: {
|
|
56
|
+
'text': text,
|
|
57
|
+
'kind': kind,
|
|
58
|
+
'limit': limit,
|
|
59
|
+
},
|
|
60
|
+
});
|
|
61
|
+
}
|
|
46
62
|
/**
|
|
47
63
|
* list all available scripts
|
|
48
64
|
* @returns Script All available scripts
|