mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-12-02 21:14:15 +01:00
Use workspace from plugin context instead of accepting it as parameter
- Removed workspaceId parameter from ctx.folder.list() and ctx.httpRequest.list() - Updated event handlers to get workspace from plugin context - Use proper generated TypeScript types in Context interface
This commit is contained in:
1 parent
6d5ba685f1
commit
07d743db21
8 files changed
+60
-30
No files matched your search
@@ -1235,8 +1235,6 @@ pub struct FindHttpResponsesResponse {
|
||||
pub struct ListHttpRequestsRequest {
|
||||
#[ts(optional)]
|
||||
pub folder_id: Option<String>,
|
||||
#[ts(optional)]
|
||||
pub workspace_id: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Default, Serialize, Deserialize, TS)]
|
||||
@@ -1249,10 +1247,7 @@ pub struct ListHttpRequestsResponse {
|
||||
#[derive(Debug, Clone, Default, Serialize, Deserialize, TS)]
|
||||
#[serde(default, rename_all = "camelCase")]
|
||||
#[ts(export, export_to = "gen_events.ts")]
|
||||
pub struct ListFoldersRequest {
|
||||
#[ts(optional)]
|
||||
pub workspace_id: Option<String>,
|
||||
}
|
||||
pub struct ListFoldersRequest {}
|
||||
|
||||
#[derive(Debug, Clone, Default, Serialize, Deserialize, TS)]
|
||||
#[serde(default, rename_all = "camelCase")]
|
||||
|
||||
Reference in new issue
Block a user