windmill-client 1.168.2 → 1.169.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
|
@@ -116,6 +116,18 @@ export declare class ResourceService {
|
|
|
116
116
|
*/
|
|
117
117
|
resourceTypeExclude?: string;
|
|
118
118
|
}): CancelablePromise<Array<ListableResource>>;
|
|
119
|
+
/**
|
|
120
|
+
* list resource names
|
|
121
|
+
* @returns any resource list names
|
|
122
|
+
* @throws ApiError
|
|
123
|
+
*/
|
|
124
|
+
static listResourceNames({ workspace, name, }: {
|
|
125
|
+
workspace: string;
|
|
126
|
+
name: string;
|
|
127
|
+
}): CancelablePromise<Array<{
|
|
128
|
+
name: string;
|
|
129
|
+
path: string;
|
|
130
|
+
}>>;
|
|
119
131
|
/**
|
|
120
132
|
* create resource_type
|
|
121
133
|
* @returns string resource_type created
|
|
@@ -152,6 +152,21 @@ class ResourceService {
|
|
|
152
152
|
},
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
|
+
/**
|
|
156
|
+
* list resource names
|
|
157
|
+
* @returns any resource list names
|
|
158
|
+
* @throws ApiError
|
|
159
|
+
*/
|
|
160
|
+
static listResourceNames({ workspace, name, }) {
|
|
161
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
162
|
+
method: 'GET',
|
|
163
|
+
url: '/w/{workspace}/resources/list_names/{name}',
|
|
164
|
+
path: {
|
|
165
|
+
'workspace': workspace,
|
|
166
|
+
'name': name,
|
|
167
|
+
},
|
|
168
|
+
});
|
|
169
|
+
}
|
|
155
170
|
/**
|
|
156
171
|
* create resource_type
|
|
157
172
|
* @returns string resource_type created
|
|
@@ -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
|