windmill-client 1.210.0 → 1.211.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/client.js
CHANGED
|
@@ -82,7 +82,7 @@ function getResource(path, undefinedIfEmpty) {
|
|
|
82
82
|
return undefined;
|
|
83
83
|
}
|
|
84
84
|
else {
|
|
85
|
-
throw Error(`Resource not found at ${path} or not visible to you`);
|
|
85
|
+
throw Error(`Resource not found at ${path} or not visible to you: ${e.body}`);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
});
|
|
@@ -105,7 +105,8 @@ function resolveDefaultResource(obj) {
|
|
|
105
105
|
}
|
|
106
106
|
exports.resolveDefaultResource = resolveDefaultResource;
|
|
107
107
|
function getStatePath() {
|
|
108
|
-
|
|
108
|
+
var _a;
|
|
109
|
+
const state_path = (_a = getEnv("WM_STATE_PATH_NEW")) !== null && _a !== void 0 ? _a : getEnv("WM_STATE_PATH");
|
|
109
110
|
if (state_path === undefined) {
|
|
110
111
|
throw Error("State path not set");
|
|
111
112
|
}
|
|
@@ -212,7 +213,7 @@ function getVariable(path) {
|
|
|
212
213
|
return yield index_1.VariableService.getVariableValue({ workspace, path });
|
|
213
214
|
}
|
|
214
215
|
catch (e) {
|
|
215
|
-
throw Error(`Variable not found at ${path} or not visible to you`);
|
|
216
|
+
throw Error(`Variable not found at ${path} or not visible to you: ${e.body}`);
|
|
216
217
|
}
|
|
217
218
|
});
|
|
218
219
|
}
|
package/dist/core/OpenAPI.js
CHANGED
|
@@ -155,6 +155,12 @@ export declare class UserService {
|
|
|
155
155
|
progress?: number;
|
|
156
156
|
};
|
|
157
157
|
}): CancelablePromise<string>;
|
|
158
|
+
/**
|
|
159
|
+
* leave instance
|
|
160
|
+
* @returns string status
|
|
161
|
+
* @throws ApiError
|
|
162
|
+
*/
|
|
163
|
+
static leaveInstance(): CancelablePromise<string>;
|
|
158
164
|
/**
|
|
159
165
|
* get current usage outside of premium workspaces
|
|
160
166
|
* @returns number free usage
|
|
@@ -195,14 +201,6 @@ export declare class UserService {
|
|
|
195
201
|
static whoami({ workspace, }: {
|
|
196
202
|
workspace: string;
|
|
197
203
|
}): CancelablePromise<User>;
|
|
198
|
-
/**
|
|
199
|
-
* leave workspace
|
|
200
|
-
* @returns string status
|
|
201
|
-
* @throws ApiError
|
|
202
|
-
*/
|
|
203
|
-
static leaveWorkspace({ workspace, }: {
|
|
204
|
-
workspace: string;
|
|
205
|
-
}): CancelablePromise<string>;
|
|
206
204
|
/**
|
|
207
205
|
* accept invite to workspace
|
|
208
206
|
* @returns string status
|
|
@@ -194,6 +194,17 @@ class UserService {
|
|
|
194
194
|
mediaType: 'application/json',
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
|
+
/**
|
|
198
|
+
* leave instance
|
|
199
|
+
* @returns string status
|
|
200
|
+
* @throws ApiError
|
|
201
|
+
*/
|
|
202
|
+
static leaveInstance() {
|
|
203
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
204
|
+
method: 'POST',
|
|
205
|
+
url: '/users/leave_instance',
|
|
206
|
+
});
|
|
207
|
+
}
|
|
197
208
|
/**
|
|
198
209
|
* get current usage outside of premium workspaces
|
|
199
210
|
* @returns number free usage
|
|
@@ -252,20 +263,6 @@ class UserService {
|
|
|
252
263
|
},
|
|
253
264
|
});
|
|
254
265
|
}
|
|
255
|
-
/**
|
|
256
|
-
* leave workspace
|
|
257
|
-
* @returns string status
|
|
258
|
-
* @throws ApiError
|
|
259
|
-
*/
|
|
260
|
-
static leaveWorkspace({ workspace, }) {
|
|
261
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
262
|
-
method: 'POST',
|
|
263
|
-
url: '/w/{workspace}/users/leave_workspace',
|
|
264
|
-
path: {
|
|
265
|
-
'workspace': workspace,
|
|
266
|
-
},
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
266
|
/**
|
|
270
267
|
* accept invite to workspace
|
|
271
268
|
* @returns string status
|
|
@@ -147,6 +147,14 @@ export declare class WorkspaceService {
|
|
|
147
147
|
static deleteWorkspace({ workspace, }: {
|
|
148
148
|
workspace: string;
|
|
149
149
|
}): CancelablePromise<string>;
|
|
150
|
+
/**
|
|
151
|
+
* leave workspace
|
|
152
|
+
* @returns string status
|
|
153
|
+
* @throws ApiError
|
|
154
|
+
*/
|
|
155
|
+
static leaveWorkspace({ workspace, }: {
|
|
156
|
+
workspace: string;
|
|
157
|
+
}): CancelablePromise<string>;
|
|
150
158
|
/**
|
|
151
159
|
* list pending invites for a workspace
|
|
152
160
|
* @returns WorkspaceInvite user
|
|
@@ -265,6 +273,7 @@ export declare class WorkspaceService {
|
|
|
265
273
|
*/
|
|
266
274
|
requestBody: {
|
|
267
275
|
operator?: boolean;
|
|
276
|
+
invite_all?: boolean;
|
|
268
277
|
};
|
|
269
278
|
}): CancelablePromise<string>;
|
|
270
279
|
/**
|
|
@@ -181,6 +181,20 @@ class WorkspaceService {
|
|
|
181
181
|
},
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
|
+
/**
|
|
185
|
+
* leave workspace
|
|
186
|
+
* @returns string status
|
|
187
|
+
* @throws ApiError
|
|
188
|
+
*/
|
|
189
|
+
static leaveWorkspace({ workspace, }) {
|
|
190
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
191
|
+
method: 'POST',
|
|
192
|
+
url: '/w/{workspace}/workspaces/leave',
|
|
193
|
+
path: {
|
|
194
|
+
'workspace': workspace,
|
|
195
|
+
},
|
|
196
|
+
});
|
|
197
|
+
}
|
|
184
198
|
/**
|
|
185
199
|
* list pending invites for a workspace
|
|
186
200
|
* @returns WorkspaceInvite user
|